The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by subhendugiri, Jun 30, 2014.

  1. subhendugiri

    subhendugiri Registered

    Joined:
    Jun 30, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. subhendugiri

    subhendugiri Registered

    Joined:
    Jun 30, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page