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 *
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
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.
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 /.*
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
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
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
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
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
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.
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
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
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.
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
* 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.
* 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.
* 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
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,
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
19 matches
Mail list logo