You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Kevin J. Woolley" <ke...@activestate.com> on 2009/09/16 22:21:09 UTC

[users@httpd] ProxyPass gets "stuck" in a VirtualHost

Hello folks,

I'm running into an odd problem, and I'm just about at the point of RTFS 
for it, but I'm hoping that someone can lend a hand.

I have a collection of machines with identical installations of Apache, 
each with a couple of dozen VirtualHosts.  The specific problem I'm 
facing is that there is one VirtualHost (vhosta) that needs to ProxyPass 
to another VirtualHost, which I'm doing like this:

     ProxyPass /catalog https://vhostb.activestate.com/json/catalog
     ProxyPassReverse /catalog https://vhostb.activestate.com/json/catalog

This is in an SSL-enabled vhost, needless to say.

The effect it's having is that I get a 404 and an entry in vhosta's 
error_log that it can't find /path/to/vhosta/htdocs/json/catalog.

I've tried substituting other local vhosts into the destination to 
roughly the same effect, but strangely if I substitute Google in I get 
an error message from Google, suggesting that it's working differently. 
  This leads me to think it's something to do with canonicalisation of 
the URL or address (the vhosts in question share an IP, and a reverse 
DNS lookup of the IP in question gives vhosta).  Using the nocanon 
argument to ProxyPass doesn't seem to help, though.

Does this sound familiar to anyone, or better yet, has anyone found a 
solution for this?  I'll be happy to give any further details required 
if this turns out to be a bug of some flavour (though I would imagine 
someone else would have run into it long ago if that were the case).

Cheers,

kjw

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass gets "stuck" in a VirtualHost

Posted by "Kevin J. Woolley" <ke...@activestate.com>.
Nick Kew wrote:

>> I have a collection of machines with identical installations of 
>> Apache, each with a couple of dozen VirtualHosts.  The specific 
>> problem I'm facing is that there is one VirtualHost (vhosta) that 
>> needs to ProxyPass to another VirtualHost, which I'm doing like this:
>>
>>     ProxyPass /catalog https://vhostb.activestate.com/json/catalog
>>     ProxyPassReverse /catalog https://vhostb.activestate.com/json/catalog
> 
> That's a very strange thing to be doing on a single host.
> Why not just alias it?

I hadn't tried it -- vhostb is running a PHP application framework, 
while vhosta is completely static and uses no PHP.  I'll likely wind up 
giving aliasing a shot.

>> This is in an SSL-enabled vhost, needless to say.
>>
>> The effect it's having is that I get a 404 and an entry in vhosta's 
>> error_log that it can't find /path/to/vhosta/htdocs/json/catalog.
> 
> At a guess, something in your toolchain doesn't support SNI.

Yup -- using CentOS 5.3's Apache 2.2.3, which Wikipedia's SNI article 
says is about nine points behind SNI support.  That's almost certainly 
the culprit.

Thank you for your help, Nick -- greatly appreciated!

Cheers,

kjw


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass gets "stuck" in a VirtualHost

Posted by Nick Kew <ni...@webthing.com>.
Kevin J. Woolley wrote:
> Hello folks,
> 
> I'm running into an odd problem, and I'm just about at the point of RTFS 
> for it, but I'm hoping that someone can lend a hand.
> 
> I have a collection of machines with identical installations of Apache, 
> each with a couple of dozen VirtualHosts.  The specific problem I'm 
> facing is that there is one VirtualHost (vhosta) that needs to ProxyPass 
> to another VirtualHost, which I'm doing like this:
> 
>     ProxyPass /catalog https://vhostb.activestate.com/json/catalog
>     ProxyPassReverse /catalog https://vhostb.activestate.com/json/catalog

That's a very strange thing to be doing on a single host.
Why not just alias it?

> This is in an SSL-enabled vhost, needless to say.
> 
> The effect it's having is that I get a 404 and an entry in vhosta's 
> error_log that it can't find /path/to/vhosta/htdocs/json/catalog.

At a guess, something in your toolchain doesn't support SNI.

-- 
Nick Kew

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org