First time writing an .htaccess, so...
I try to allow indexing of a dir and later one adding a password for the specific dir. I herefor am writing an .htaccess file.
The server I'm working on denies indexing of dirs (I think) yet not the use of .htaccess files in itself. I make that statement for it does not return an internal error when adding the following lines in my htaccess file in the dir I would like to allow indexing for:
[code]<Files index.html> Order allow,deny Allow from all </Files>[/code]
I do get an internal error when I use the following:
[code]<Files index.html> Order allow,deny Allow from all </Files> <Directory> Order allow,deny Deny from all </Directory>[/code]
I used the above for they are very simple statements and I am merely checking whether the .htaccess file works.
I presume that this has something to do with a deny in some config file on the server. I checked the apache2.conf and modifying that one did not seem to do much. Maybe I modified it incorrectly, however... I also think it might have something to do with the 000-default file (/etc/apache2/sites-enabled/) for their it is stated the following: [code] ServerAdmin webmaster@localhost
DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options -Indexes FollowSymLinks MultiViews AllowOverride Limit Order allow,deny allow from all </Directory>[/code]
Which I presume must become a +Indexes. But the file 000-default is a symbolic link and I don't know where it links to and where the file can be found. Or should I not touch this one and add a new file linking to the dir...