您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

apache子域名设立

2026/1/28 18:17:22发布15次查看
apache子域名设置
本地的环境,apache的配置文件中设置的根目录是d:/appserv/www/,子域名的配置如下,放在配置文件开始了
namevirtualhost *:80
servername localhost
serveralias localhost
documentroot d:/appserv/www/
# allowoverride fileinfo options
options none
order allow,deny
allow from all
servername dede
serveralias dede
documentroot d:/appserv/www/dede/
# allowoverride fileinfo options
options none
order allow,deny
allow from all
servername ikaihui
serveralias ikaihui
documentroot d:/appserv/www/ikaihui/
# allowoverride fileinfo options
options none
order allow,deny
allow from all

现在的情况是:输dede和ikaihui都能正常显示,输localhost的话chrome会报这个错:
错误 103 (net::err_connection_aborted):未知错误。
ie也打不开。
删掉localhost那一段的话,输localhost会显示dede的页面,我现在想输localhost正常显示www文件夹下面的index.php,该怎么配
------解决方案--------------------
看看是不是你的反病毒或者防火墙之类导致的.
------解决方案--------------------
你的写法是正确的
清除一下浏览器缓冲区看看
我就是这样写的
namevirtualhost *:80
servername localhost
documentroot /amp/web
servername www.a.net
documentroot /amp/web/www.a.net
servername www.b.net
documentroot /amp/web/www.b.net

------解决方案--------------------
那你把里面的 directory 一节去掉看看
------解决方案--------------------
加这个看下
alias /绑定目录 绝对物理路径
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product