apache - XAMPP VHosts can't forward local port to public (not same webpage online as localhost) - Stack Overflow

I have a server running on XAMPP using apache, I have a program using its own port 7777 and port 80 is

I have a server running on XAMPP using apache, I have a program using its own port 7777 and port 80 is to my homepage. I am trying to make it so that when you go to server/ace it will port forward to localhost:7777/ace where the program is located. I'm new to website hosting and this is a passion project. I have my public IP forwarded on 80 only, and don't want to open any other ports on my router.

Here is what i have in httpd-vhosts.conf.

<VirtualHost *:80>

Servername server
ProxyRequests Off
ProxyPreserveHost On
ProxyPass "/ace" "http://localhost:7777/ace"
ProxyPassReverse "/ace" "http://localhost:7777/ace"

This setup works, but it only shows an HTML and not the actual program that is supposed to run. localhost:7777/ace works fine as well.

Localhost page [Public Page]: (.png)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745071225a4609558.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信