Issue with Files and/or FilesMatch Directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Apache users,

I have Apache 2.2.3 on my test server. I have following configuration for testing site, which is running on Tomcat - Apache is a proxy for Tomcat:

-----
<VirtualHost testing.domain.com:80>
    DefaultType text/html
    ProxyRequests Off
    ProxyPreserveHost On
<Proxy *>
        Order deny,allow
        Allow from all
</Proxy>

ServerName testing.domain.com

ProxyPass               /scans                     http://localhost:8081/scans
ProxyPassReverse        /scans                     http://localhost:8081/scans
ProxyPass               /web                          http://localhost:8081/web
ProxyPassReverse        /web                          http://localhost:8081/web

<FilesMatch ^\.xml>
    Order deny,allow
    Deny from all
</FilesMatch>

</VirtualHost>
-----

Currently my main goal is to block every request to *.xml file. For this purposes I've created "FilesMatch" rule, which is present at the end of the above configuration. 
Unfortunately it doesn't work, I have still access to xml files across server.
Where I am making a mistake? What is wrong with above configuration?
Thank you in advance for any help.

Best Regards
--
Piotr Pawlowski





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux