December 22, 2010 01:20PM
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Wed, Dec 22, 2010 at 12:44:48PM -0500,
> microchip wrote:
>
> > oops, forgot the add the rewrite ^
> > http://somedomain.com:8080$request_uri?
> permanent; in first server, but
> > it doesn't work
>
> It won't as long as you still have "return 444;"
> before it.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


yes, yes, I did a wrong paste of an older config, but even with the below one, it still doesn't work for me, which has my head scratching

server {
listen *:8080 default_server;
server_name _;
rewrite ^ http://xxx.xxx.xxx:8080$request_uri? permanent;
}

server {
server_name xxx.xxx.xxx;
listen *:8080 rcvbuf=64k backlog=128;
limit_conn gulag 5;
charset utf-8;
access_log /var/log/nginx/xxx.access.log;
root /srv/www/htdocs/xxx.xxx.xxx;
location / {
index index.php;
}
Subject Author Posted

URI rewrite with port number

microchip December 19, 2010 04:10PM

Re: URI rewrite with port number

Maxim Dounin December 19, 2010 04:22PM

Re: URI rewrite with port number

microchip December 19, 2010 04:43PM

Re: URI rewrite with port number

microchip December 22, 2010 12:43PM

Re: URI rewrite with port number

microchip December 22, 2010 12:44PM

Re: URI rewrite with port number

Maxim Dounin December 22, 2010 01:12PM

Re: URI rewrite with port number

microchip December 22, 2010 01:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready