Forum Moderators: phranque

Message Too Old, No Replies

How can I allow .xml and .ico files accesible by web browser?

         

alpacinofr

9:45 am on Jan 12, 2007 (gmt 0)

10+ Year Member



Now it is not allowed by default. I need to be allowed .xml and .ico files accesible by web browser. Now it is give 403 error. How can I doing this at once for multiple virtual hosts?

Thank you

jdMorgan

2:53 pm on Jan 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Access should be allowed by default, so there must be some configuration code in httpd.conf or in your .htaccess files that is blocking access. Another possibility is that you haven't defined the MIME-type for those files, and that is triggering a secondary error, leading to the 403-Forbidden response.

You may need to add


AddType image/x-icon .ico
Addtype application/xml .xml

to the server configuration

We'll need more information to be of much help. The first thing to do is to request one of these files with Firefox or SeaMonkey, using the "Live HTTP Headers" extension, and see what your complete server response looks like. Look for the 403 error response, but also look for any redirects that occur before the error response.

Jim