Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm using a proxy: action in mod_security2. I'd like to preserve the full URL of the original request, however, and it seems to be rewriting that to the url in my proxy: action.

So a request to http://domain.example.com/foo

hits my the below statement

SecAction proxy:http://internal_error.example.com/

This seems to be getting proxied to http://internal_error.example.com/, which I'd like it to be proxied to http://internal_error.example.com/foo

Is this possible?

share|improve this question

1 Answer 1

SecAction doesn't provide for reverse proxy I believe.

This explains how to do this in Apache:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

share|improve this answer
    
I'm not actually using SecAction - I'm using a SecRule with a proxy action: SecAction is a slightly easier way to illustrate. Either way though, github.com/SpiderLabs/ModSecurity/wiki/… indicates that proxy is a legitimate action though. –  Cian May 28 '13 at 21:38
    
If you put the SecRule entry it would help. –  Schrute May 30 '13 at 16:27
    
The SecRule entry shoudln't matter - SecAction triggers it too. But, the SecRule I have is SecdRule ARGS:Arg1 PROD \ proxy:10.1.1.1/someurl/someotherurl.do –  Cian Jun 25 '13 at 10:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.