https://issues.apache.org/bugzilla/show_bug.cgi?id=44811

           Summary: Apache 2.2.4 P flag in rewriterule doesn't work as
                    intended
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Using P flag in the rewrite rule, the proxy is not shown in the URL. I tried
the following rewrite rule:

RewriteCond %{REQUEST_URI} survey08app
RewriteRule ^/survey08app/(.*)$ http://172.16.170.40/survey08app/$1 [P,L,QSA]

In the browser I typed http://hostname/survey08app/loginForm.htm. In the form
that appeared I entered the login info. I then saw the apache forward it to
http://172.16.170.40/survey08app/providerForm.htm. I expected to see
http://hostname/survey08app/providerForm.htm

I then started a thread in alt.apache.configuration with all the details

http://groups.google.com/group/alt.apache.configuration/browse_thread/thread/d2d582f1d6391ead?hl=en#

One poster suggested mod_proxy. So I compiled the apache 2.2.4 with mod_proxy
enabled and installed httpd. The following works:


<VirtualHost *:81>
ProxyPass / http://172.16.170.40/
ProxyPassReverse / http://172.16.170.40/
TransferLog "logs/proxy.log"
</VirtualHost>

But this has the unintended side-effect of opening the port 81 on the firewall.
So mod_proxy did not solve my original problem.

I'd appreciate speedy resolution of this problem.

Thank you
Murthy


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to