extranet/config/sd-13408/extranetrec
2010-10-08 16:20:06 +00:00

65 lines
2.3 KiB
Plaintext

# Version : 20100922
<VirtualHost *:80>
ServerName extranetrec.scores-decisions.com
DocumentRoot /var/www/extranetrec/www
AddDefaultCharset UTF-8
SetEnv APPLICATION_ENV "REC"
<Directory /var/www/extranetrec/www/>
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^localauth/(.*)$ ./localauth/index.php?q=$1 [L,QSA]
RewriteRule ^min/([a-z]=.*) ./min/index.php?$1 [L,NE]
RewriteRule ^print/(.*)-(.*)-(.*)-(.*).pdf ./index.php?sortie=pdf&siret=$1&idEntreprise=$2&page=$3&params=$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/(.*)$ ./js/combine/$1 [L,NE]
</IfModule>
</Directory>
<Location /ipari/>
ProxyPass http://tville.scores-decisions.com:8080/ipari/
ProxyPassReverse http://tville.scores-decisions.com:8080/ipari/
</Location>
<Location />
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:pdf|avi|mov|mp3|mp4|rm)$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch "MSIE 6" no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
</Location>
<FilesMatch "\.(ico|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
<FilesMatch "\.js$">
Header set Cache-Control "max-age=432000, public"
</FilesMatch>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel error
ErrorLog /var/log/apache2/extranetrec-error.log
CustomLog /var/log/apache2/extranetrec-access.log combined
ServerSignature Off
</VirtualHost>