indexes options not working
Hi,
In our apache web server, we have a number of virtual hosts running. I wanted to create an alias to a folder only to a specific virtual host. So what I did is, in the virtual host configuration section of that specific site, I added as below: <VirtualHost *:80> .... .... ... Alias /myfiles/ "/webroot/myfiles/" <Directory "/data/webroot/myfiles"> Options -Indexes -ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> However, with this configuration,if index.html is not present in the system , I am still able to see directory listing of all files under that folder myfiles. What could be going wrong ? Why "options" directive of is not working once it is placed inside <directory > of <virtualhost> ?? If I move <directory> in the main httpd.conf (ie , outside virtual host section), then again it works fine. But I don't want this as I don't want other virtual hosts also to be able to access to that directory... In the main httpd.conf, I have something like <Directory "/data/webroot"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> how to fix this issue ?? any ides ??? Thanks.. |
Possibly you should use <Location> instead of <Directory>. After all, all virtual hosts share the same file system, it's the URL name space that differs.
|
what is the main difference between using <Location> and <Directory> ?
|
Quote:
Regarding the difference between <Location> and <Directory ...> take a look at the apacje documentation. Regards |
All times are GMT -5. The time now is 05:23 AM. |