You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ch...@TravelChannel.com on 2009/03/12 20:33:45 UTC
[users@httpd] Question about proxy pass
Guys,
I got a strange issue. I have an app that I reach via proxy pass using a url like this.
http://appbox.mydomain.com/portal/site/mediakit
When I log out it should go to
http://appbox.mydomain.com/portal/site/mediakit/template.logout
But what I am getting is the following
http://appbox.mydomain.com/portal/site/mediakittemplate.logout
The page comes but no graphics the log in box is there
My proxy setting are has follows
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /static_file !
ProxyPass /static_files !
ProxyPass /portal/images/ balancer://appbox/portal/images/
ProxyPass /portal/site/ balancer://appbox/portal/site/
ProxyPass /portal/templates/ balancer://appbox/portal/templates/
ProxyPass /mediakit/ balancer://appbox/mediakit/
Is there something I need to do so that it doesn't do that? Can one see something wrong?
======================
Charles "Chuck" Payne
System Administrator
Travel Channel
3700 Mansell Rd, Suite 500
Alpharetta, GA 30022
www.travelchannel.com
-----------------------
Email: Chuck.Payne@TravelChannel.com
Desk Phone: 404-269-5533 (x65533)
Fax Number: 404-269-5461
Blackberry Number: 770-940-7765
Personal Cell: 404-451-3579
aim: terrorp
gtalk: terrorpup@gmail.com
-----------------------
---------------------------------------------------------------------
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] Question about proxy pass
Posted by chris <ch...@ia.gov>.
> But what I am getting is the following
>
>
> http://appbox.mydomain.com/portal/site/mediakittemplate.logout
>
> The page comes but no graphics the log in box is there
>
> My proxy setting are has follows
>
> ProxyRequests Off
> ProxyPreserveHost On
>
> ProxyPass /static_file !
> ProxyPass /static_files !
>
>
> ProxyPass /portal/images/ balancer://appbox/portal/images/
> ProxyPass /portal/site/ balancer://appbox/portal/site/
> ProxyPass /portal/templates/ balancer://appbox/portal/templates/
> ProxyPass /mediakit/ balancer://appbox/mediakit/
>
> Is there something I need to do so that it doesn't do that? Can one see something wrong?
The lack of a slash on the end of the client's request for http://appbox.mydomain.com/portal/site/mediakit may be what's
hurting you.
You could add this redirect above your proxypass lines in a location block to influence handling precedence:
<Location />
RedirectMatch ^/portal/site/mediakit$ /portal/site/mediakit/
</location>
I believe ProxyPassReverse now plays nice with mod_proxy_balancer. If so you might leverage it to add the slash back.
Read all about it and the relatives here: http://httpd.apache.org/docs/trunk/mod/mod_proxy.html#ProxyPassReverse
crr
---------------------------------------------------------------------
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