extranet/config/sd-13408
2009-10-19 09:25:58 +00:00
..
.htaccess Modification complete du chemin img/logos avec rewriterule 2009-07-07 16:35:28 +00:00
config.inc Modification de l'url du webservice 2009-10-19 09:25:58 +00:00
README Modification des expires 2009-10-06 13:31:49 +00:00

Serveur hébergé chez free

Configuration vhost
===================

<VirtualHost *>
	ServerAdmin webmaster@localhost
	ServerName extranet.scores-decisions.com
	ServerAlias extranet2.scores-decisions.com
	AddDefaultCharset ISO-8859-1
	DocumentRoot /var/www/extranet/www	
	
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	
	<Directory /var/www/extranet/www/>
		Options Indexes FollowSymLinks
		AllowOverride none
		Order allow,deny
		Allow from all
		
		<IfModule mod_php5.c>
        php_value auto_prepend_file "/var/www/extranet/config/prepend.php"
        php_value auto_append_file "/var/www/extranet/config/append.php"
        </IfModule>

		<IfModule mod_rewrite.c>
	    RewriteEngine On
	    RewriteBase /
	    RewriteCond %{REQUEST_FILENAME} !-f
	    RewriteCond %{REQUEST_FILENAME} !-d
	    RewriteCond %{REQUEST_URI} !=/favicon.ico
	    RewriteRule ^imgcache/(.*)$ ./image.php?q=$1 [L,NC]
	    RewriteRule ^pdf/(.*)$ ./datafile.php?type=pdf&q=$1 [L,NC]
	    RewriteRule ^logos/(.*)$ ./datafile.php?type=logos&q=$1 [L,NC]
		</IfModule>
		
		<IfModule mod_expires.c>
		ExpiresActive On
		ExpiresDefault "access plus 4 hours"
		ExpiresByType image/gif "access plus 5 days"
		ExpiresByType image/jpeg "access plus 5 days"
		ExpiresByType image/png "access plus 5 days"
		</IfModule>
	</Directory>
	
	<Directory /var/www/extranet/www/min/>
		<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^([a-z]=.*)  index.php?$1  [L,NE]
        </IfModule>
    </Directory>
    
    <Directory "D:/www/extranet/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/data/>
		AllowOverride none
		Order allow,deny
		Allow from all
	</Directory>
	
	# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
    LogLevel error
	ErrorLog /var/log/apache2/extranet-error.log
	CustomLog /var/log/apache2/extranet-access.log combined
	ServerSignature Off
</VirtualHost>