NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@
free
.com
DocumentRoot
"/usr/local/apache/htdocs"
ServerName www.
free
.com
ErrorLog
"logs/www.free.com.error.log"
CustomLog
"logs/www.free.com.access.log"
combined
<Directory
"/usr/local/apache/docs"
>
Options Indexes FollowSymLinks
DirectoryIndex index.html index.php index.htm
AllowOverride None
Order allow,deny
Allow from all
<
/Directory
>
<
/VirtualHost
>
<VirtualHost *:80>
ServerAdmin admin@
free
.com
DocumentRoot
"/data/html/wordpress"
ServerName blog.
free
.com
ErrorLog
"logs/blog.free.com.error.log"
CustomLog
"logs/blog.free.com.access.log"
combined
<Directory
"/data/html/wordpress"
>
Options Indexes FollowSymLinks
DirectoryIndex index.html index.php index.htm
AllowOverride None
Order allow,deny
Allow from all
<
/Directory
>
<
/VirtualHost
>
本文转自 dengaosky 51CTO博客,原文链接:http://blog.51cto.com/dengaosky/1855311,如需转载请自行联系原作者