Merge des définitions des vhosts pour les serveurs depuis la branche 1.2

This commit is contained in:
Michael RICOIS 2009-08-18 10:20:39 +00:00
parent 0c79af37ea
commit b873b07a51
5 changed files with 88 additions and 73 deletions

View File

@ -10,34 +10,42 @@ P.S : Modifier les chemins de stockage de fichier dans le vhost et dans le confi
Configuration vhost
===================
# EXTRANET TRUNK
<VirtualHost *:80>
ServerAdmin webmaster@extranet.devlocal.com
ServerName extranet.devlocal.com
AddDefaultCharset iso-8859-1
DocumentRoot "D:/www/extranet/www"
<Directory "D:/www/extranet/">
DocumentRoot "D:/www/extranet/www"
<Directory "D:/www/extranet/www/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Allow from all
<IfModule mod_php5.c>
php_value auto_prepend_file "D:/www/extranet/config/prepend.php"
php_value auto_append_file "D:/home/www/extranet/config/append.php"
php_value auto_prepend_file "D:/www/extranet/config/prepend.php"
php_value auto_append_file "D:/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]
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>
<Directory "D:/www/extranet/www/min/">
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^([a-z]=.*) index.php?$1 [L,NE]
</IfModule>
</Directory>
<Directory "D:/www/data/">
AllowOverride none
@ -45,11 +53,11 @@ Configuration vhost
Allow from all
</Directory>
<IfModule mod_rewrite.c>
<IfModule mod_rewrite.c>
RewriteLog "logs/extranet.devlocal.com-rewrite.log"
#RewriteLogLevel 3
</IfModule>
</IfModule>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
ErrorLog "logs/extranet.devlocal.com-error.log"

View File

@ -9,6 +9,7 @@ Configuration vhost
ServerAlias extranet3.scores-decisions.com
DocumentRoot /home/www/extranet/www
<Directory />
Options FollowSymLinks
AllowOverride None
@ -21,23 +22,29 @@ Configuration vhost
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"
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]
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

View File

@ -9,6 +9,7 @@ Configuration vhost
ServerAlias extranet2.scores-decisions.com
DocumentRoot /var/www/extranet/www
<Directory />
Options FollowSymLinks
AllowOverride None
@ -21,23 +22,29 @@ Configuration vhost
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"
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]
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 /var/www/extranet/www/min/>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^([a-z]=.*) index.php?$1 [L,NE]
</IfModule>
</Directory>
<Directory /var/www/data/>
AllowOverride none
Order allow,deny

View File

@ -1,13 +1 @@
php_value auto_prepend_file "/sites/extranet/config/prepend.php"
php_value auto_append_file "/sites/extranet/config/append.php"
<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>
# Ce fichier ne sert qu'a tester les directives

View File

@ -23,38 +23,43 @@ Configuration vhost
Allow from all
<IfModule mod_php5.c>
php_value auto_prepend_file "/sites/extranet/config/prepend.php"
php_value auto_append_file "/sites/extranet/config/append.php"
php_value auto_prepend_file "/sites/extranet/config/prepend.php"
php_value auto_append_file "/sites/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]
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 /sites/extranet/www/min/>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^([a-z]=.*) index.php?$1 [L,NE]
</IfModule>
</Directory>
<Directory /sites/data/>
AllowOverride none
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteLog /var/log/apache2/extranet-rewrite.log
RewriteLogLevel 3
</IfModule>
#<IfModule mod_rewrite.c>
# RewriteLog /var/log/apache2/extranet-rewrite.log
# RewriteLogLevel 3
#</IfModule>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
ErrorLog /var/log/apache2/extranet-error.log
CustomLog /var/log/apache2/extranet-access.log combined
</VirtualHost>
</VirtualHost>