首页 > 代码库 > Apache 虚拟主机配置案例
Apache 虚拟主机配置案例
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
#ServerAlias blog1.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
>
本文出自 “眼眸刻着你的微笑” 博客,请务必保留此出处http://dengaosky.blog.51cto.com/9215128/1855311
Apache 虚拟主机配置案例
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。