Hi. My goal is to disable directory listing globally on a cPanel server with Litespeed. I've configured following settings on a server to make this possible:
- directory listing disabled in apache global config on cpanel
- Auto Index set to NO in litespeed server general config
- added "Options -Indexes" on the bottom of server general config in "Apache Style Configurations" section.
Directory listing seems to be disabled, but when visiting eg. empty folder, LS serves 404 error, compared to the same cPanel server with apache, which serves 403.
If I create local .htaccess file and put "Options -Indexes" inside, then LS also serves 403 when I visit an empty dir. What else am I missing? Is returned 404 expected behaviour, or is configuration "Apache Style Configurations" simply ignored?
- directory listing disabled in apache global config on cpanel
- Auto Index set to NO in litespeed server general config
- added "Options -Indexes" on the bottom of server general config in "Apache Style Configurations" section.
Directory listing seems to be disabled, but when visiting eg. empty folder, LS serves 404 error, compared to the same cPanel server with apache, which serves 403.
If I create local .htaccess file and put "Options -Indexes" inside, then LS also serves 403 when I visit an empty dir. What else am I missing? Is returned 404 expected behaviour, or is configuration "Apache Style Configurations" simply ignored?