# 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 AcceptPathInfo On 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 ^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/(.*)$ ./js/combine/$1 [L,NE] </IfModule> </Directory> <Directory /var/www/extranetrec/www/localauth/> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] </IfModule> </Directory> <Directory /var/www/extranetrec/www/min/> <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^([a-z]=.*) index.php?$1 [L,NE] </IfModule> </Directory> <Location /> AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/x-httpd-php SetOutputFilter DEFLATE 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 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>