Francis Daly
November 12, 2010 11:18AM
On Fri, Nov 12, 2010 at 10:30:05AM -0500, fwKilo wrote:

Hi there,

> It does the same thing as what I have. I've tried using proxy_pass, but
> all it does is load up text and none of the images work.

As a reminder, that was:

location /tango {
rewrite ^ http://vbox.bravo.mysites.com permanent;
}

If you want not to change the url in the browser bar, you must not issue
a redirect (= an external rewrite).

Since the content is on a different server, you cannot just use an
internal rewrite -- you must use proxy_pass.

If you control the http://vbox.bravo.mysites.com server, you will
find it much easier if you can configure it to serve from the "/tango"
url space (as in, http://vbox.bravo.mysites.com/ is empty apart from
http://vbox.bravo.mysites.com/tango/, which then has all the content
below there) -- otherwise, you will have to ensure that all links within
the content are changed to include "/tango" as necessary, yourself.

(That's presumably why the "none of the images work" -- the browser
requests /tango/file.html, which refers to /image.png; the browser then
requests /image.png, which your proxying server does not proxy because
it does not start with /tango.)

See the Fine Manual (on the wiki) for some other configuration directives
that should help with the header rewriting, if necessary.

All the best,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

URL Redirect Problems

fwKilo November 11, 2010 04:51PM

Re: URL Redirect Problems

t3hslr November 12, 2010 02:33AM

Re: URL Redirect Problems

fwKilo November 12, 2010 10:30AM

Re: URL Redirect Problems

Francis Daly November 12, 2010 11:18AM

Re: URL Redirect Problems

fwKilo November 12, 2010 01:06PM

Re: URL Redirect Problems

Francis Daly November 12, 2010 01:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready