ca2236

Well-Known Member
Feb 2, 2018
229
22
18
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
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
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,
 

ca2236

Well-Known Member
Feb 2, 2018
229
22
18
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