Assigning port 80 of specified IP to other programs/nginx/varnish

subhendugiri

Registered
Jun 30, 2014
2
0
1
cPanel Access Level
Root Administrator
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.
 

subhendugiri

Registered
Jun 30, 2014
2
0
1
cPanel Access Level
Root Administrator
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.