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.

httpd.conf How to make mods Sticky

Discussion in 'General Discussion' started by santrix, Feb 19, 2010.

  1. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    I want to change

    <Directory "/">
    Options ExecCGI FollowSymLinks Includes IncludesNOEXEC -Indexes -MultiViews SymLinksIfOwnerMatch
    AllowOverride All
    </Directory>

    to

    <Directory "/">
    Options ExecCGI FollowSymLinks Includes IncludesNOEXEC -Indexes -MultiViews SymLinksIfOwnerMatch
    AllowOverride AuthConfig FileInfo Indexes Limit
    </Directory>

    I want to force this so that it is not going to get overwritten next time upcp runs... Whichi s the best file to modify?

    /var/cpanel/templates/apache2/main.default around line 72 contains:

    <Directory "[% main.maindirectory.item.directory %]">
    Options [% main.directory.options.item.options %]
    AllowOverride [% main.directory.allowoverride.item.allowoverride %]
    </Directory>

    Is this the place? Is there a way to set the variable main.directory.allowoverride.item.allowoverride ??? rather than just overwriting it?
     
    #1 santrix, Feb 19, 2010
    Last edited: Feb 19, 2010
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    You can make the changes in the Apache configuration itself i.e.

    and once done, run the distiller i.e. execute the following commands to make the changes permanent

     
  3. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    I don't think that will work because every night /scripts/checkallowoverride runs, and will probably overwrite this entry...
     
Loading...

Share This Page