I’ve recently configured a new server running Debian Lenny Linux. It really irritated methat by default an Alias existed to the /icons/ directory.
It took me a while to get through the configured Virtualhosts in /etc/apache2/sites-enabled/ , the /etc/apache2/apache2.conf and check among the enabled Apache modueles existing in /etc/apache2/mods-avaiable/
I finally got that the Alias to the directory was because of a configuration directives in /etc/apache2/mods-available/alias.conf
To disable the Alias you’ll have to:
debian-server:~# vim /etc/apache2/mods-available/alias.conf
Then Change in the /etc/apache2/mods-available/alias.conf :
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Allow from all to to Deny from all in order to forbid access to the /icons/ directory.
If you want to completely wipe out the Alias comment out the line:
Alias /icons/ "/usr/share/apache2/icons/"
Now restart Apache and the access to the /icons directory enabled by default on Debian would be no more 🙂
debian-server:~# /etc/init.d/apache2 restart
Cheers 🙂
More helpful Articles
Tags: How to disable directory listing to /icons directory on Debian Lenny Linux
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
thanx, you saved my time
View CommentView CommentMozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
thx a lot – thx 🙂
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Directory services are now available online and you no longer have to go through thick pages just to look for a person, company or any business you are interested in.
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.7 Safari/532.2
The good thing about technology is that you can already avail of services wherever you are. If you need directory services, with just a few clicks, you will get what you are looking for.
View CommentView CommentMozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
Couldn’t you just change Indexes >> -Indexes
That will disable browsing of the directory.
View CommentView Comment