74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
Serveur de développement
|
|
|
|
Configuration vhost
|
|
===================
|
|
|
|
<VirtualHost *:80>
|
|
ServerAdmin webmaster@localhost
|
|
ServerName extranet.sd.com
|
|
DocumentRoot /sites/extranet/www
|
|
AddDefaultCharset ISO-8859-1
|
|
|
|
# Disallow browsing of Subversion working copy administrative dirs.
|
|
<DirectoryMatch "^/.*/\.svn/">
|
|
Order deny,allow
|
|
Deny from all
|
|
</DirectoryMatch>
|
|
|
|
<Directory /sites/extranet/www/>
|
|
Options Indexes FollowSymLinks
|
|
AcceptPathInfo On
|
|
AllowOverride none
|
|
Order allow,deny
|
|
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"
|
|
</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 /sites/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 /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>
|
|
|
|
# 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> |