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条)