Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    43,943
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    43,943
    Likes Received:
    1,821
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice