0

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?

Cian
  • 5,777
  • 1
  • 27
  • 40

1 Answers1

-2

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

Schrute
  • 797
  • 5
  • 14
  • 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, https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#wiki-proxy 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:http://10.1.1.1/someurl/someotherurl.do – Cian Jun 25 '13 at 10:23