+2 votes
in Web & Google by (63.0k 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

0 votes
by (271k points)
edited by

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