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.com/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]: (https://i.sstatic.net/iV1GYFEj.png)
Servername serverlook funny, if that really is the implementation. It has to be the actual host name (often referred to as the "domain", so here "server.com" in the example).