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:
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.
Configure your virtual host settings in Apache to listen on port 80 and set the ServerName/ServerAlias to your desired domain name.
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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-05-14 11:00:00 +0000
Seen: 8 times
Last updated: May 29 '21
What is the cause of port conflict when scaling docker compose services?
How can access for a specific IP address be denied on the HTTPS port 443 using Nginx?
How can I successfully configure port mapping in Docker for several .NET applications?
What is the process of configuring an http-listen-addr in a docker or k8s-pod?
What is the reverse proxy feature for WebSockets in Nest JS?