Re: Question about proxy pass

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

 



> 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@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