[users@httpd] Issue with Files and/or FilesMatch Directive

2012-01-30 Thread Piotr Pawłowski
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 *

Re: [users@httpd] Issue with Files and/or FilesMatch Directive

2012-01-30 Thread Eric Covener
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

Re: [users@httpd] Issue with Files and/or FilesMatch Directive

2012-01-30 Thread Nick Kew
On Mon, 30 Jan 2012 13:40:45 + Piotr Pawłowski piotr.pawlow...@goyello.com wrote: Currently my main goal is to block every request to *.xml file. The clue is in the name. FilesMatch applies to files, not to proxied requests. Get rid of the Proxy and Filesmatch sections and use Location.

RE: [users@httpd] Issue with Files and/or FilesMatch Directive

2012-01-30 Thread Piotr Pawłowski
...@webthing.com] Sent: Monday, January 30, 2012 14:55 To: users@httpd.apache.org Subject: Re: [users@httpd] Issue with Files and/or FilesMatch Directive On Mon, 30 Jan 2012 13:40:45 + Piotr Pawłowski piotr.pawlow...@goyello.com wrote: Currently my main goal is to block every request to *.xml file

RE: [users@httpd] Issue with Files and/or FilesMatch Directive

2012-01-30 Thread Piotr Pawłowski
Subject: RE: [users@httpd] Issue with Files and/or FilesMatch Directive Hi Nick, Thank you for the response. I thought, that 'Location' directive doesn't work for file. How it should be configured correctly to block only XML files? Thanks in advance for a help. Best Regards -- Piotr Pawlowski

Re: [users@httpd] Issue with Files and/or FilesMatch Directive

2012-01-30 Thread Eric Covener
2012/1/30 Piotr Pawłowski piotr.pawlow...@goyello.com: OK, I've got it (quite simple) : LocationMatch .xml /LocationMatch maybe \.xml$ to be safe? -- Eric Covener cove...@gmail.com - The official User-To-User support