本文链接
安装 Apache HTTP 就略过了,安装完毕后,停止 Apache HTTP 服务,进入目录 /apache/conf 找到httpd.conf 文件,在文件尾继续添加如下内容,填写完毕后保存文件,重启 Apache HTTP 服务,测试效果。
###############################################################################################
NameVirtualHost 10.10.1.8:80
###############################################################################################
# 虚拟主机设置
######################################################
<VirtualHost 10.10.1.8:80>
ServerAdmin webmaster@alinehot9.net
DocumentRoot "D:/Apache2.2/htdocs"
ServerName www.alinehot9.net
# ServerAlias www.alinehot9.net
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>
<VirtualHost 10.10.1.8:80>
ServerAdmin webmaster@alinehot9.net
DocumentRoot "D:/WebSite/php/ThinkSNS/ROOT"
ServerName t1.alinehot9.net
# ServerAlias t1.alinehot9.net
ErrorLog D:/WebSite/php/ThinkSNS/error.log
CustomLog D:/WebSite/php/ThinkSNS/access.log common
#TransferLog D:/WebSite/php/ThinkSNS/accessT.log
</VirtualHost>
<VirtualHost 10.10.1.8:80>
ServerAdmin webmaster@alinehot9.net
DocumentRoot "D:/WebSite/php/sharetronix/ROOT"
ServerName t.alinehot9.net
# ServerAlias t.alinehot9.net
ErrorLog D:/WebSite/php/sharetronix/error.log
CustomLog D:/WebSite/php/sharetronix/access.log common
#TransferLog D:/WebSite/php/sharetronix/access.log
</VirtualHost>
######################################################
# 相应的目录权限设置
######################################################
<Directory "D:/Apache2.2/htdocs">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "D:/WebSite/php/ThinkSNS/ROOT">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "D:/WebSite/php/sharetronix/ROOT">
Options Indexes FollowSymLinks MultiViews
# Options Indexes MultiViews
AllowOverride All
Order Allow,Deny
Allow From All
</Directory>
###############################################################################################
.
QQ群:236201801,欢迎讨论
本文链接
.

1256

被折叠的 条评论
为什么被折叠?



