apache - htaccess adding password while enabling directories view in browser -


okay might obvious 1 however...

i have following in .htaccess file

authtype basic authname "message" authuserfile /www/sites/5ce/448/domainname/folder.htpasswd require valid-user 

which works fine password protecting folder it's placed in.

i have in .htaccess file (when remove first one)

options +indexes  

which works fine showing directory folder , included files on browser.

when put these error 500. how enable directory view password protected?

there shouldn't space between + , indexes.
try this:

authtype basic authname "message" authuserfile /www/sites/5ce/448/domainname/folder.htpasswd require valid-user options +indexes  

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -