0

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)

2
  • Servername server look 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). Commented Mar 4 at 8:07
  • Are you sure that you did load the proxy and the proxy_html module into your apache http server? How? You should get a clear error message otherwise in your http server's error log file. Did you check that log file? Commented Mar 4 at 8:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.