I have a front apache server (httpd-2.0.52-41.ent.centos4) , with a
backend db/servlet server (internal IP).
I want to use apache's mod_rewrite to "redirect" the
jsp/servlet/wicket requests to the backend server.
So I add these lines in httpd.conf :

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteLogLevel 0
  RewriteRule ^/app(.*) http://192.168.1.2:8080/app$1 [P]
  RewriteRule ^/jsp(.*) http://192.168.1.2:8080/webtools$1 [P]
  RewriteRule ^/servlet(.*) http://192.168.1.2:8080/servlet$1 [P]
</IfModule>

/app rewrite wicket requests , /jsp rewrites JSP requests , and
/servlet rewrites servlet requests
The backend server is 192.168.1.2 , which runs Resin 3.2.1 , listens port 8080.

With this setting , JSPs and servlets both works correctly.
All GET/POST requests work like a charm , users don't know their
JSP/servlet requests are redirected internally.

BUT , things not work with wicket's requests (from url '/app' )
In wicket , GET request works OK , the URL is correct .
but every POST request are redirected to
http://192.168.1.2:8080/app/xxxxxx , which is not connectable from internet.

How to solve it ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to