Re: [users@httpd] mod_proxy and Redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Josh,

1) I checked my httpd.conf file. The rewrite module is being loaded before
the proxy module.
2) I do need to do the reverse proxy . So I cannot negate that.

Here's my scenario in detail.

client      ---      Webserver      -----       Appln server
             https                            http

Webserver to Appln server connections are made by ProxyPass. Since this is
application is used for all
transactions of our company and it can be deployed on the internet, we are
planning to use SSL between
client and Webserver. So all requests between client and Webserver will be
on https. What I want is that
when the URL is say https://abc.com/docs/xyz   it should be rewritten to
http://abc.com/docs/xyz. In addition
to this, there is a ProxyPass on Webserver which is like this :
ProxyPass /docs/ http://abc1.com/docs/


When I'm disabling the ProxyPass statement in my httpd.conf, I can see that
URL is being rewritten from
https to http. But the moment I uncomment the ProxyPass statement, URL is
not being rewritten.

Any clues why ??

Anand




----- Original Message ----- 
From: "Joshua Slive" <jslive@xxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Wednesday, March 09, 2005 7:35 PM
Subject: Re: [users@httpd] mod_proxy and Redirect


> On Wed, 9 Mar 2005 14:41:09 +0530, K Anand <kanand@xxxxxxxxxxxxxx> wrote:
> > Apache 1.3.27
> >
> > I have a server configuration where I use ProxyPass. In the virtual host
> > where the ProxyPass is located, I also have a Redirect rule. It seems
like
> > Proxypass is taking preference to Redirect. Is this correct ?? I tried
the
> > same thing with RewriteRule....Here also it looks like ProxyPass is
taking
> > precedence...The RewriteRule and Redirect rule were written before the
> > ProxyPass directives ...
>
> Two possible solutions:
>
> 1. Use the "ProxyPass /foo !" syntax to exempt certain URLs from the
proxypass.
>
> 2. Try changing the module ordering by reording the LoadModule
> directives in httpd.conf.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux