+2 votes
in Web & Google by (71.8k points)
I have created a subdomain, but when I try to access it, it gives error ".htaccess: Options not allowed here". I am using Apache 2.4.34 as web server and Nginx as reverse proxy.

1 Answer

+1 vote
by (353k points)
selected by
Best answer

If you have .htaccess file in the public_html folder, make sure that it does not have the following lines:

Options -Indexes


Options +Indexes


Options Indexes

If you want to disable directory listing/browsing, you can add "IndexIgnore *" in your .htaccess file. Check this link