I recently moved a site to a new server where the server configuration is not allowing access to xml files:
[error] client denied by server configuration: /var/www/website/test.xml
After further testing, I get a 403 (forbidden) when trying to load any xml files.
How do I enable server xml files in apache? I'm assuming it's an apache configuration.
Thanks!
Solution:
my .htaccess had:
<Files ~ "\.(xml)$">
deny from all
</Files>
I removed the above htaccess directive and denied only the xml files that shouldn't be accessed directly.
Best Answer
Your Apache
Allow
/Deny
directives are configured to forbid access to the file you're trying to get.These directives will likely be in your
<VirtualHost>
configuration, or an.htaccess
file. Please edit your question with this info and we can assist in straightening out the rules.