Snippets tagged "vhost conf" Snippets tagged "vhost conf"

Configuration de base d'un VHost pour Apache

NameVirtualHost www.mywebsite.com:port
<VirtualHost www.mywebsite.com:port>
 
ServerAdmin admin@mywebsite.com
DocumentRoot /path_to_htdocs/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /path_to_htdocs/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error-mywebsite.log
LogLevel warn
CustomLog /var/log/apache2/access-mywebsite.log combined
</VirtualHost>

A placer dans un fichier dans /etc/apache2/sites-enable/

by Aurélien Vialet on 2007-10-09, tagged apache  conf  vhost 
(2 comments)