2009-07-20 15:13:51 +00:00
|
|
|
Configuration local
|
|
|
|
===================
|
|
|
|
|
2010-09-06 09:39:28 +00:00
|
|
|
Sur les serveurs en production les fichiers .htaccess sont ignorés.
|
|
|
|
L'utilisation de .htaccess est réservé seulement pour tester une option de
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
Modifier les chemins d'accès aux fichiers de données dans le vhosts et
|
|
|
|
dans le fichier config.inc
|
|
|
|
|
|
|
|
Développement PHP
|
|
|
|
=================
|
|
|
|
@todo : Faire en sorte de supprimer les déclarations prepend et append
|
2009-07-20 15:13:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
Configuration vhost
|
|
|
|
===================
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerAdmin webmaster@extranet.devlocal.com
|
|
|
|
ServerName extranet.devlocal.com
|
2010-06-15 14:52:22 +00:00
|
|
|
AddDefaultCharset UTF-8
|
2009-08-18 10:20:39 +00:00
|
|
|
DocumentRoot "D:/www/extranet/www"
|
|
|
|
|
|
|
|
<Directory "D:/www/extranet/www/">
|
2009-08-11 16:51:33 +00:00
|
|
|
Options Indexes FollowSymLinks
|
2009-07-20 15:13:51 +00:00
|
|
|
AllowOverride All
|
|
|
|
Order allow,deny
|
2009-08-18 10:20:39 +00:00
|
|
|
Allow from all
|
|
|
|
|
2009-08-11 16:51:33 +00:00
|
|
|
<IfModule mod_php5.c>
|
2009-08-18 10:20:39 +00:00
|
|
|
php_value auto_prepend_file "D:/www/extranet/config/prepend.php"
|
|
|
|
php_value auto_append_file "D:/www/extranet/config/append.php"
|
2009-08-11 16:51:33 +00:00
|
|
|
</IfModule>
|
2009-08-18 10:20:39 +00:00
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteBase /
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteCond %{REQUEST_URI} !=/favicon.ico
|
2010-09-06 09:39:28 +00:00
|
|
|
|
|
|
|
# print/siret-idEntreprise-page-paramName_paramValue-...
|
|
|
|
RewriteRule ^print/(.*)-(.*)-(.*)-(.*).pdf ./index.php?sortie=pdf&siret=$1&idEntreprise=$2&page=$3¶ms=$4 [L,NC]
|
|
|
|
RewriteRule ^fichier/(.*)/(.*)$ ./servefile.php?q=$1/$2 [L,NC]
|
|
|
|
|
|
|
|
RewriteRule ^imgcache/(.*)$ ./servefile.php?q=imgcache/$1 [L,NC]
|
|
|
|
RewriteRule ^pdf/(.*)$ ./servefile.php?q=pdf/$1 [L,NC]
|
|
|
|
RewriteRule ^logos/(.*)$ ./servefile.php?q=logos/$1 [L,NC]
|
|
|
|
|
|
|
|
RewriteRule ^scripts/(.*)$ ./servescripts.php?q=$1 [L,NC]
|
2009-08-18 10:20:39 +00:00
|
|
|
</IfModule>
|
|
|
|
</Directory>
|
2009-08-11 16:51:33 +00:00
|
|
|
|
2009-08-18 10:20:39 +00:00
|
|
|
<Directory "D:/www/extranet/www/min/">
|
2009-08-11 16:51:33 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2009-08-18 10:20:39 +00:00
|
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^([a-z]=.*) index.php?$1 [L,NE]
|
2009-08-11 16:51:33 +00:00
|
|
|
</IfModule>
|
2009-08-18 10:20:39 +00:00
|
|
|
</Directory>
|
2009-07-20 15:13:51 +00:00
|
|
|
|
2009-08-11 16:51:33 +00:00
|
|
|
<Directory "D:/www/data/">
|
|
|
|
AllowOverride none
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
|
|
|
|
2009-07-20 15:13:51 +00:00
|
|
|
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
|
|
|
|
LogLevel debug
|
|
|
|
ErrorLog "logs/extranet.devlocal.com-error.log"
|
|
|
|
CustomLog "logs/extranet.devlocal.com-access.log" common
|
|
|
|
</VirtualHost>
|
2009-08-11 16:51:33 +00:00
|
|
|
|
|
|
|
|
2010-09-06 09:39:28 +00:00
|
|
|
Rewrite Log
|
|
|
|
===========
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteLog "logs/extranet.devlocal.com-rewrite.log"
|
|
|
|
#RewriteLogLevel 3
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
|
|
|
Compression
|
|
|
|
===========
|
|
|
|
|
|
|
|
<Location />
|
|
|
|
# Netscape 4.x has some problems...
|
|
|
|
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
|
|
|
|
|
|
|
# Netscape 4.06-4.08 have some more problems
|
|
|
|
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
|
|
|
|
|
|
|
# MSIE masquerades as Netscape, but it is fine
|
|
|
|
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
|
|
|
|
|
|
|
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
|
|
|
|
# the above regex won't work. You can use the following
|
|
|
|
# workaround to get the desired effect:
|
|
|
|
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
|
|
|
|
|
|
|
|
#AddOutputFilterByType DEFLATE text/css
|
|
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
|
|
|
|
Header append Vary User-Agent env=!dont-vary
|
|
|
|
</Location>
|
|
|
|
|