Proxy with URI and params

Robson Roberto Souza Peixoto robsonpeixoto at gmail.com
Tue Jan 17 11:27:17 UTC 2012


On Mon, Jan 16, 2012 at 11:04 PM, António P. P. Almeida <appa at perusio.net>wrote:

> On 17 Jan 2012 00h41 WET, appa at perusio.net wrote:
>
> > On 16 Jan 2012 21h54 WET, robsonpeixoto at gmail.com wrote:
> >
> >> [1  <multipart/alternative (7bit)>]
> >> [1.1  <text/plain; UTF-8 (quoted-printable)>]
> >> Thanks Antonio.
> >>
> >> Now the problem is with the images, css and others thinks.  When
> >> the site is loaded, it try to download from www.example.com, and
> >> not from www.proxy.com.
> >>
> >> For example, the browser try to get the www.example.com/menu.css,
> >> but the correct is try to download the www.proxy.com/menu.css.
> >
> > Then you need to be clear on what you want.
>
>
I'd like to navigate on http://www.proxy.com/delivery/.../.../.../ using my
domain http://www.example.com/.

So the user will navigate on www.example.com and always show on URL the '
www.example.com/delivery/../../..'

It's is possible?


> > Perhaps you just and to proxy_pass to another host. Or if you want
> > to have other stuff like images and such try:
> >
> > location /delivery {
> >
> - location ~* /delivery/[^/]*.\(?:css|js|gif|jpe?g|png)$ {
> + location ~* /delivery/[^/]*\.(?:css|js|gif|jpe?g|png)$ {
>
> --- appa
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120117/b612b0c2/attachment.html>


More information about the nginx mailing list