What is the difference between
<Directory /var/www/>
Options All -Indexes
</Directory>
and
<Directory /var/www/*>
Options All -Indexes
</Directory>
?
The first does not work, the second does work, on my server. And there doesn't appear to be any other configuration files overriding the setting. I thought they meant the same thing.
Edit: It turns out there was another configuration file affecting the server that was overriding this one, so that was causing the unexpected result. I guess having * superseded the other configuration file.
-
Strange. I just checked and the first one works for me. Do you have any files in the directory? When you are changing directory are you using the following command?
cd /var/www
If you are typing an extra "/" at the end such as:
cd /var/www/
then it may be looking for another directory.
mattloaf1 : It turns out there was another configuration file affecting the server that was overriding this one, so that was causing the unexpected result. I guess having * superseded the other configuration file.From storm -
/var/www/ includes all files in the directory. /var/www/* does not include hidden files. I see a .htacess file in your future.
From matt
0 comments:
Post a Comment