NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Avon_Fox
Jan 10, 2012Aspirant
mod_autoindex not all folders
Hi there, this one has me boggled so I'm hoping you can help.
I'm running 4.1.7
I've modified my /etc/frontview/apache/Virtual.conf and added a my-virtual.conf to /etc/frontview/apache/addons as detailed here http://www.readynas.com/forum/viewtopic.php?f=35&t=35896 to stop the webshare appearing my URL(s). Virtual.conf and my-virtual.conf copied below.
This change went fine and it works a treat.
My problem is that some folders in the /web/ directory (where I keep my web files) have indexes and some are just folders of files that I need to access without an index.
My my-virtual.conf file has "Options Indexes" listed but when I web surf to those index free folders I get "Forbidden You don't have permission to access /apps/ on this server."
Shouldn't mod_autoindex generate a directly listing or is it not supported on the ReadyNAS?
Cheers for any help/ideas you fine folks can offer.
Virtual.conf
NameVirtualHost *:80
<VirtualHost *:80>
SSLEngine off
RewriteEngine on
RewriteRule ^/admin/(.*)$ https://%{SERVER_NAME}/admin/$1 [R,L]
</VirtualHost>
my-virtual.conf
<VirtualHost *:80>
ServerName http://www.the-liberator.net
DocumentRoot /c/web
<Directory /c/web>
Options Indexes
Order allow,deny
Allow from all
</Directory>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
</VirtualHost>
I'm running 4.1.7
I've modified my /etc/frontview/apache/Virtual.conf and added a my-virtual.conf to /etc/frontview/apache/addons as detailed here http://www.readynas.com/forum/viewtopic.php?f=35&t=35896 to stop the webshare appearing my URL(s). Virtual.conf and my-virtual.conf copied below.
This change went fine and it works a treat.
My problem is that some folders in the /web/ directory (where I keep my web files) have indexes and some are just folders of files that I need to access without an index.
My my-virtual.conf file has "Options Indexes" listed but when I web surf to those index free folders I get "Forbidden You don't have permission to access /apps/ on this server."
Shouldn't mod_autoindex generate a directly listing or is it not supported on the ReadyNAS?
Cheers for any help/ideas you fine folks can offer.
Virtual.conf
NameVirtualHost *:80
<VirtualHost *:80>
SSLEngine off
RewriteEngine on
RewriteRule ^/admin/(.*)$ https://%{SERVER_NAME}/admin/$1 [R,L]
</VirtualHost>
my-virtual.conf
<VirtualHost *:80>
ServerName http://www.the-liberator.net
DocumentRoot /c/web
<Directory /c/web>
Options Indexes
Order allow,deny
Allow from all
</Directory>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
</VirtualHost>
1 Reply
Replies have been turned off for this discussion
- Avon_FoxAspirantJust stirring this one again.
Index creation works fine for 'shares' that are set for HTTP enabled but not for any with the above config. So basically anything in the /c/web/ directory on my NAS does not get autoindexed but any other share does.
Does anyone know what file(s) have the config(s) in them that tells apache which folders to and not to apply mod_autoindex to?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!