Forum Moderators: phranque

Message Too Old, No Replies

help mod_rewrite with proxypass

trying redirect the data from link to another

         

droz578

5:11 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Well after sometime I finally figured out how to redirect https to http. Now I have a issue were when the redirect happends the url does not see all the paramters going to Tomcat webserver. This is whatI'm currently doing:
I goto url [example.com...] then I redirect to [example.com...] when it goes to /tomcat/reports its then sent through proxypass and I get the page just fine but Tomcat webserver gives me the following error: "Null Input Stream: null" Here are the settings that I have for httpd.conf for this example:
RewriteEngine on
RewriteLog /root/server.rewrite.txt
RewriteRule ^/reports/ [%{SERVER_NAME}...] [R]

ProxyPass /tomcat/reports [example1.com:8080...]

If you have any ideas or helpful hints let me, I would apperciate any help that you could give....

jdMorgan

7:02 pm on Nov 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I haven't done this before, but you probably don't need a redirect. Just pass the request to the proxy module from mod_rewrite:

RewriteRule ^/reports/ http://[b]www.example1.com:8080[/b]%{REQUEST_URI} [b][P][/b]

Jim

droz578

8:02 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



The reason for the proxypass is due to the web server being located in a DMZ, and only allow access from the web server, the other web server is located outside the DMZ