1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#NameVirtualHost *:80
<VirtualHost *:80>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.htm
</IfModule>
ServerAdmin some@admin
DocumentRoot "/path/to/hostname/docroot"
<Directory "/path/to/hostname/docroot">
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
ServerName hostname
ServerAlias www.hostname
ErrorLog /path/to/hostname/error.log
# CustomLog /path/to/hostname/access.log common
</VirtualHost> |