Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To access apache2 on a non-standard port without having to include the port number in the URL, you can use a reverse proxy.

Here are the steps:

  1. Set up a reverse proxy on port 80 that forwards requests to your apache2 server on the non-standard port. You can use Apache's mod_proxy module for this.

  2. Configure your virtual host settings in Apache to listen on port 80 and set the ServerName/ServerAlias to your desired domain name.

  3. Restart Apache2 to apply the changes.

Now, when someone visits your website using the domain name you set in step 2, the reverse proxy will automatically forward the request to Apache2 running on the non-standard port. This means that visitors won't need to include the port number in the URL to access your website.