[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] Doubt or problem with redirect - Help please.

2012-01-30 Thread Matus UHLAR - fantomas
On 25.01.12 19:03, Mathijs wrote: Some possible solutions to this, assuming www.someaddress.com has a virtualhost: Simplest way is with a redirect: VirtualHost *:80 ServerName www.someaddress.com Redirect / http://www.otheraddres.com?mode=1 /VirtualHost RedirectMatch /.*

Re: [users@httpd] How to make Apache mod_deflate and Transfer-encoding : Chunked work together?

2012-01-30 Thread Matus UHLAR - fantomas
On 1/27/2012 2:50 PM, sameer shah wrote: As you can see in above 2 headers chunking is working only if the compression is turned off. On 27.01.12 15:37, William A. Rowe Jr. wrote: Chunking is not a feature that the client gets to choose. Your client code is badly written if it is that

Re: [users@httpd] Re: IE8 thinks SHTML is text.html

2012-01-30 Thread Matus UHLAR - fantomas
Content-Type: text.html On 28.01.12 12:25, Christos Jonathan Hayward wrote: Yes; I was wondering what was causing that. It turned out that ssl.conf was giving a content-type of text.html. now this is one of reasons why I think that the server config should NOT be splitted to different

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

2012-01-30 Thread Piotr Pawłowski
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 From: Nick Kew

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

2012-01-30 Thread Piotr Pawłowski
OK, I've got it (quite simple) : LocationMatch .xml /LocationMatch Thank you all for a help, case closed. Best Regards -- Piotr Pawlowski From: Piotr Pawłowski [piotr.pawlow...@goyello.com] Sent: Monday, January 30, 2012 15:53 To: users@httpd.apache.org

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

Re: [users@httpd] How to make Apache mod_deflate and Transfer-encoding : Chunked work together?

2012-01-30 Thread William A. Rowe Jr.
On 1/30/2012 8:30 AM, Matus UHLAR - fantomas wrote: On 1/27/2012 2:50 PM, sameer shah wrote: As you can see in above 2 headers chunking is working only if the compression is turned off. On 27.01.12 15:37, William A. Rowe Jr. wrote: Chunking is not a feature that the client gets to choose.

[users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
To the best to my memory, the following .htaccess worked on linux, but on OSX, the result is that the browser gives me the text of the script, rather the output of the script. FYI: The script is fully functional when requested via cgi-bin. # .htaccess RewriteEngine On DirectoryIndex

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Igor Cicimov
You need to tell apache you want it to handle the pyton files as scripts not as html/text files. AddHandler cgi-script .cgi .pl .py You (or someone else) have probably done that on linux but you are not aware or have forgotten about it. Igor On Tue, Jan 31, 2012 at 10:18 AM, Tim Johnson

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Igor Cicimov
Plus if the journalLoader.py is a script then the directive DirectoryIndex journalLoader.py doesn't make any sense to me. On Tue, Jan 31, 2012 at 11:59 AM, Igor Cicimov icici...@gmail.com wrote: You need to tell apache you want it to handle the pyton files as scripts not as html/text files.

[users@httpd] reverse proxy / extfilter not working

2012-01-30 Thread V B
Gents, This appears to be a common issue Whilst you are able to execute ExtFilters on local files, a Reverse Proxy configuration does not work the same way. This has been reported here: http://objectmix.com/apache/706472-proxypass-extfilter.html Config: VirtualHost *:80

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov icici...@gmail.com [120130 16:10]: You need to tell apache you want it to handle the pyton files as scripts not as html/text files. AddHandler cgi-script .cgi .pl .py You (or someone else) have probably done that on linux but you are not aware or have forgotten about it.

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov icici...@gmail.com [120130 16:10]: You need to tell apache you want it to handle the pyton files as scripts not as html/text files. AddHandler cgi-script .cgi .pl .py You (or someone else) have probably done that on linux but you are not aware or have forgotten about it.

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov icici...@gmail.com [120130 16:10]: Plus if the journalLoader.py is a script then the directive DirectoryIndex journalLoader.py If I eliminate it, then I just a get an index page.. -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Igor Cicimov
If I eliminate it, then I just a get an index page.. Correct, and in that index.html page you call or redirect to your pyton script. That's the proper way to do it so you keep your web pages structure separate from your cgi scripts that live in a separate directory cgi-bin. On Tue, Jan 31,

Re: [users@httpd] reverse proxy / extfilter not working

2012-01-30 Thread Nick Kew
On 31 Jan 2012, at 01:09, V B wrote: Gents, This appears to be a common issue Why? Because someone posts on some forum? ExtFilterDefine fixtext mode=output intype=text/html cmd=/bin/sed s/html/HTML/ig SetOutputFilter fixtext (a) Why on Earth would you