Install Nginx Reverse Proxy listening on different ports
I would like to install Nginx Reverse Proxy via the Nginx Manager o f WHM. Typically the installation process will assign the standard ports 80 and 443 to Nginx, and change the corresponding ports of EasyApache.
However, I would like to have EasyApache intact so that it continue to serve my website as-is. Instead, I need to have Nginx Reverse Proxy listening on different ports (let's say 8080 for http ad 8443 for https). This will allow me to test my website through Nginx by visiting it as https://www.example.com:8443/, while the website can be also accessible via EasyApache as https://www.example.com/.
How can I achieve that without causing any malfunction?
-
Hey there! There isn't a supported way to handle this in cPanel. You may want to try testing our experimental standalone version of Nginx as outlined here:
https://docs.cpanel.net/knowledge-base/experimental-software/nginx-standalone/
but even that will change the ports if it detects the default of 80 and 443.
You may need to install Nginx manually and configure that on the server outside of cPanel tools to get this behavior.
0 -
Hello,
Thanks for your feedback. If I use the Nginx Manager of WHM so as to install the Nginx as a Reverse Proxy with caching, the EasyApache will change the default ports 80 and 443, as these will be assigned to Nginx.
After the installation of Nginx, if I edit the configuration files of both EasyApache and Nginx, so as to manually assign EasyApache the default ports 80 and 443 again, and assign different ports to Nginx, will be that possible?
0 -
You're welcome to try, but that isn't something that we test so you'd need to check that out and evaluate if it will work for your machine.
0
Please sign in to leave a comment.
Comments
3 comments