Search code examples
phpwampserver

403 (Forbidden) error at the console window


I am getting 403 (Forbidden) error at the console window when I run any project.

    GET http://localhost/icons/blank.gif 403 (Forbidden)
    GET http://localhost/icons/back.gif 403 (Forbidden)
    GET http://localhost/icons/text.gif 403 (Forbidden)
    GET http://localhost/icons/folder.gif 403 (Forbidden)

I am using WampServer Version 2.5. Can anybody help me how can I get rid of these error?


Solution

  • I find the solution:

    Edit the httpd-autoindex.conf located in \bin\apache\apache2.4.9\conf\extra

    I changed

    Alias /icons/ "c:/Apache24/icons/"
    

    to

    Alias /icons/ "D:/wamp/bin/apache/apache2.4.9/icons/"
    

    and to

    <Directory "D:/wamp/bin/apache/apache2.4.9/icons/">