Welcome! Log In Create A New Profile

Advanced

Re: NGINX stops redirecting

Francis Daly
May 09, 2017 06:20PM
On Mon, May 08, 2017 at 03:17:53PM -0700, Douglas Landau wrote:

Hi there,

> I don't get it. On Friday, at 13:39, I was happily browsing my XWiki site, as you can see from the NGINX access_log. Then from that log you see no activity until 10:31 this morning, at which time it no longer wants to redirect hits to port 8080 or to /xwiki, it just wants to serve from its own html/ subdir.
>

On Friday, your client was accessing things below
http://dwswiki10.westmarine.net/

On Monday, your client was accessing things below http://dwswiki10/

They are different requests.

Your config snippets show that those two requests are handled in different
server{} blocks.

Because dwswiki10 is not explicit anywhere, it will be handled in the
first server{} here:

> [root@dwswiki10 conf]# more nginx.conf

> http {
> server {
> listen 80;
> server_name localhost;
> location / {
> root html;
> index index.html index.htm;
> }
>
> }
> include ../conf.d/*.conf;
> }

while you probably want it to be handled in this server{}

> [root@dwswiki10 nginx]# cat conf.d/tomcat.conf
> server {
> listen 80;
> server_name dwswiki10.westmarine.net;

Either add "default_server" to the "listen" line, or add "dwswiki10"
to the "server_name" line. Or add a new server{} which redirects from
dwswiki10 to dwswiki10.westmarine.net.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX stops redirecting

Douglas Landau May 08, 2017 06:18PM

RE: NGINX stops redirecting

Douglas Landau May 08, 2017 06:26PM

Re: NGINX stops redirecting

Francis Daly May 09, 2017 06:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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