XAMPP 非标准虚拟主机端口

发布于 2025-01-05 09:21:35 字数 483 浏览 0 评论 0原文

我有 Windows 7 并且安装了 XAMPP。据我所知,您必须修改 httpd.conf 并公开启用端口 80(以及端口转发)。端口 80 被我的 ISP 自动阻止,因此我使用端口 81。不过,这确实不是问题。我楼下有一个 Windows Vista 桌面,它有不同版本的 XAMPP,但端口 (81) 相同,并且运行良好。它已被移植,并且 canyouseeme.org 表示它已上线并正在运行。为了确定这一点,我请我的一个朋友访问该网站,他说它已加载。现在,当我取消转发 Vista 并转发 Windows 7 时,出现错误。它显示为离线,而我可以通过本地主机连接。问题是什么?我应该降级到较低版本的 XAMPP 吗?不建议降级,除非它是绝对最后可用的选项。

Windows 7 也在侦听端口 81 而不是 80。我在 httpd.conf 中多次检查了这一点。我可能在 XAMPP 中编辑了另一个文件,该文件公开了端口 81 并允许对其进行端口转发。关于这个文件可能是什么或者问题是什么有什么想法吗?

谢谢。

I have Windows 7 and I've installed XAMPP. From what I've been told, you have to modify httpd.conf and enable port 80 publicly (along with portforwarding). Port 80 is blocked automatically by my ISP so I'm using port 81. This really isn't the problem, though. I have a Windows Vista desktop downstairs that has a different version of XAMPP, but the same port (81) and it runs fine. It was portforwarded and canyouseeme.org said it was online and working. Just to be sure, I asked a friend of mine to visit the website and he said it loaded. Now when I unportforwarded the Vista and portforwarded the Windows 7, there was the error. It was showed as offline, while I could connect via localhost. What is the problem? Should I downgrade to a lower build of XAMPP? Don't suggest downgrading unless its the absolute last available option.

The Windows 7 is also listening on port 81 and not 80. I went over that several times in httpd.conf. I might have edited another file in XAMPP which publicized port 81 and allowed it to be portforwarded. Any ideas on what this file could be, or what the issue is?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦忆晨望 2025-01-12 09:21:35

该视频将指导您完成在 Windows 7 上更改默认端口的每个步骤:http:// /www.youtube.com/watch?v=-DWZ6Ecjl6I

另外,您可能需要考虑传播,有时当您进行切换时,它可能不会立即可见...

请执行以下步骤视频,进行切换并给它一些时间,以防传播出现问题,如果仍然不起作用,请发回此处并告诉我。

This video will guide you through each of the steps for changing the default port on Windows 7: http://www.youtube.com/watch?v=-DWZ6Ecjl6I

Also, you may need to take propagation into consideration, sometimes when you make the switch it may not be visible right away...

Go through the steps in the video, make the switch and give it some time just in case propagation is an issue, if that still doesn't work post back here and let me know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文