Welcome! Log In Create A New Profile

Advanced

Re: Redirecting without canonicalizing the port

Yang Zhang
December 16, 2010 07:10PM
This seems to happen for all redirects (e.g. rewrites), but if it
makes any difference, the particular redirect I'm interested in is
from

location /foo { alias /.../foo; }

Requests to /foo get redirected to /foo/ (but with the wrong port
number, as described below).

On Thu, Dec 16, 2010 at 3:58 PM, Yang Zhang <yanghatespam@gmail.com> wrote:
> Can I redirect to a URL that uses the port number in the request, as
> opposed to the port specified in `listen`? (so as to work with
> proxies/tunnels)
>
> E.g., if I have `listen 444` and have a tunnel so that my client is
> surfing http://localhost:4444, I don't want my redirects to send the
> client to http://localhost:444, which is currently the case - I want
> the port number to be reflected back, not "canonicalized."
>
> Thanks in advance for any hints.
>

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

Redirecting without canonicalizing the port

Yang Zhang December 16, 2010 07:02PM

Re: Redirecting without canonicalizing the port

Yang Zhang December 16, 2010 07:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
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