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!

Apache Global Configuration

Discussion in 'EasyApache' started by ca2236, Apr 10, 2018.

  1. ca2236

    ca2236 Well-Known Member

    Joined:
    Feb 2, 2018
    Messages:
    67
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Nebraska
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I want to set the configuration option "Options -Indexes" globally. When I go to the httpd.conf file in /etc/httpd/ it says to not directly edit. I looked in apache configuration in
    home -> service configuration -> apache configuration but do not see where to set an option like that.

    Is it possible to set this globally for all sites?

    I'm continuing to look at options as I write this, but I think I could add it to the include editor section, but not sure if it needs to go in pre main include, pre virtual host include or post virtual host include

    Is this correct?


    Edit:
    I think I found where to set this


    Edit #2:

    Never mind, that didn't work
     
    #1 ca2236, Apr 10, 2018
    Last edited: Apr 10, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,101
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @ca2236

    You shouldn't need an include for this you can set this globally at WHM>>Service Configuration>>Apache Configuration>>Global Configuration in the Directory "/" Options section

    You're also correct that any modifications made directly to the Apache configuration file will be overwritten, it's recommended to use the Apache Configuration editor within WHM to make changes to the conf file.


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ca2236

    ca2236 Well-Known Member

    Joined:
    Feb 2, 2018
    Messages:
    67
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Nebraska
    cPanel Access Level:
    DataCenter Provider
    Hi

    I found the area you mentioned (for my Edit #1) and I unchecked "indexes". I would imagine that this would be the same as
    -Indexes in an .htacess file. However, I can still directly browse the folder structure. I also tried restarting httpd to pick up the config change (since it was a global config change) and it is still not working.

    the .htacess for the site in question does not have anything like options +Indexes
     
  4. ca2236

    ca2236 Well-Known Member

    Joined:
    Feb 2, 2018
    Messages:
    67
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Nebraska
    cPanel Access Level:
    DataCenter Provider
    I think I found the issue,

    i didn't rebuild the apache config file first.
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,101
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @ca2236

    Please let me know if that resolves it for you.


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. ca2236

    ca2236 Well-Known Member

    Joined:
    Feb 2, 2018
    Messages:
    67
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Nebraska
    cPanel Access Level:
    DataCenter Provider
    This does.

    Thank you!
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,101
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I'm really happy to hear that and you're very welcome!

    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