本文介绍了Apache子域错误 - 找不到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我在Apache Web服务器中有子域,但子域只在本地机器上工作。当我尝试从另一台机器上输入subdomain.mysite.com时出现错误 - 找不到服务器!

我在httpd-vhosts.conf中的设置



< VirtualHost 109.xx211:80>

DocumentRoot" C:/AppServ/www/report.mysite.com"

ServerName report.mysite.com

ServerAlias * .mysite.com

ErrorLog" C:/AppServ/www/report.mysite.com/errors.log"

<目录" C:/AppServ/www/report.mysite.com">

选项索引FollowSymLinks

AllowOverride All

订单允许,拒绝

允许所有

< /目录>

php_value magic_quotes_gpc off

php_value register_globals off

< / VirtualHost>



109.xx211 - 这是我的外部ip。我在drivers \etc\hosts文件中也添加了report.mysite.com。我的操作系统Windows 2003 Server SE SP2。我需要report.mysite.com从任何计算机上工作,而不仅仅是从我的本地计算机。有谁能够帮我!谢谢!

Hi! I have subdomain in my Apache webserver, but the subdomain work only on local machine. When I try to enter on subdomain.mysite.com from another machine I've got a error - Server not found!
My setting in httpd-vhosts.conf

<VirtualHost 109.x.x.211:80>
DocumentRoot "C:/AppServ/www/report.mysite.com"
ServerName report.mysite.com
ServerAlias *.mysite.com
ErrorLog "C:/AppServ/www/report.mysite.com/errors.log"
<Directory "C:/AppServ/www/report.mysite.com">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
php_value magic_quotes_gpc off
php_value register_globals off
</VirtualHost>

109.x.x.211 - it's my external ip. I have added report.mysite.com in drivers\etc\hosts file also. My OS Windows 2003 Server SE SP2. I need that report.mysite.com work from any computer NOT only from my local computer. Can anybody help me! Thanks!

推荐答案

这篇关于Apache子域错误 - 找不到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 18:44