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.

Change order of modules loading

Discussion in 'General Discussion' started by kachan, Jan 24, 2016.

  1. kachan

    kachan Registered

    Joined:
    Dec 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I`d like to change the order to load these modules.
    mod_header
    mod_env
    How can I change via WHM?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. kachan

    kachan Registered

    Joined:
    Dec 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    The purpose I need to change the order to load these modules is because the following code wouldn't work.

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.89$
    RewriteCond %{REMOTE_ADDR} !^123\.111\.222\.123$
    RewriteRule ^(.*) - [E=PUBLIC:$1]
    Header always append X-Frame-Options "SAMEORIGIN" env=PUBLIC

    I found information on line that it worked properly after changing these order like that.
    That is why I’d like to change the order to load these modules.

    <modules>
    mod_rewrite
    mod_headers
    mod_env
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page