apache2wampwampserverhttpd.conf

Can't access files in a subdirectory using Apache server


I have an Apache 2.2.21 server installed on my Windows 7 machine. My site is up and my scripts from /scripts subdirectory are working but when I try to load icons from /icons I get a 403 forbidden error. I've already added this to my httpd.conf file:

<Directory "c:/wamp/www/icons/">
    Options Indexes FollowSymLinks
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>

Still no effect. So the question is: how can I access files in my /icons subfolder?

P.S.: Using /images subdirectory worked out just fine but the question still remains.


Solution

  • I figured out that /icons/ was included as an alias for some other directory. For me, configuration file was located at:

    C:\wamp\bin\apache\apache2.2.21\conf\extra\httpd-autoindex.conf
    

    I had to comment out this line:

    Alias /icons/ "c:/Apache22/icons/"