Assigning port 80 of specified IP to other programs/nginx/varnish
I have 4 dedicated IP for my hosting. As usual Apache is listen for requests and serve web pages at port 80. Now I want to have port 80 of one specific IP will listen by nginx/varnish. Earlier I have mad some changes in the configuration [now I forget the configuration] but after some upgrade it reset to its default means Apache listen to *:80.
My question is how to achieve these permanently effecting cpanel/WHM?
Example:
xx.xx.xx.1:80 nginx or varnish
xx.xx.xx.2:80 Apache
xx.xx.xx.3:80 Apache
xx.xx.xx.4:80 Apache
Thanks a lot.
-
Hello :) Information on how to preserve custom changes to the Apache configuration data outside of VirtualHost entries is available here: Custom Directives Outside of a VirtualHost Tag Thank you. 0 -
Thank You, Do you suggest, that I should update the ip and port at httpd.conf as described in Apache config distiller. Can it be possible in using Apache config distiller Home >> Server Configuration >> Tweak Settings ? Can multiple IP and port can be entered, if yes then how? 0 -
You mentioned that you previously made custom changes to the httpd.conf file that worked, but were not preserved. Thus, you should be able to make those same changes and run the distiller via the command line as referenced in the document from my last post. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments