62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
Serveur hébergé chez ovh
|
|
|
|
Configuration vhost
|
|
===================
|
|
|
|
<VirtualHost *>
|
|
ServerAdmin webmaster@localhost
|
|
ServerName extranet.scores-decisions.com
|
|
ServerAlias extranet3.scores-decisions.com
|
|
|
|
DocumentRoot /home/www/extranet/www
|
|
|
|
<Directory />
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
</Directory>
|
|
|
|
<Directory /home/www/extranet/www/>
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride none
|
|
Order allow,deny
|
|
Allow from all
|
|
|
|
<IfModule mod_php5.c>
|
|
php_value auto_prepend_file "/home/www/extranet/config/prepend.php"
|
|
php_value auto_append_file "/home/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>
|
|
</Directory>
|
|
|
|
<Directory /home/www/extranet/www/min/>
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
RewriteRule ^([a-z]=.*) index.php?$1 [L,NE]
|
|
</IfModule>
|
|
</Directory>
|
|
|
|
<Directory /home/www/data/>
|
|
AllowOverride none
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
|
|
LogLevel warn
|
|
ErrorLog /var/log/apache2/extranet-error.log
|
|
CustomLog /var/log/apache2/extranet-access.log combined
|
|
ServerSignature Off
|
|
</VirtualHost>
|
|
|
|
|