Apache Global Configuration
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
-
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, 0 -
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 0 -
I think I found the issue, i didn't rebuild the apache config file first. 0 -
Hi @ca2236 Please let me know if that resolves it for you. Thank you, 0 -
This does. Thank you! 0 -
I'm really happy to hear that and you're very welcome! Thank you, 0
Please sign in to leave a comment.
Comments
6 comments