【发布时间】:2014-12-11 10:53:43
【问题描述】:
在httpd.conf 中,我将端口更改为:Listen 8080 和ServerName localhost:8080
现在在我的浏览器上,我必须输入http://localhost:8080,一切似乎都正常,我可以在htdocs 目录中看到我的所有文件和文件夹。
问题是我无法进入htdocs 下的任何文件夹,例如:C:\xampp\htdocs\wordpress
当我在浏览器中点击 wordpress/ 时,它会显示
网页不可用
奇怪的是,如果我输入http://localhost:8080/wordpress,URL 会自动更改为http://localhost/wordpress/。
我得到同样的错误:“Webpage is not available”
这是因为我将端口更改为 8080 吗?
我是否缺少其他配置?
【问题讨论】:
-
@ApulGupta 如果 Skype 在端口 80 和 443 上运行,他甚至无法启动 apache。您也可以设置 Skype 使用不同的端口。
-
嗨,不,我没有安装Skype,我可以毫无问题地启动apache,只是我必须输入localhost:8080 而不是localhost