Welcome! Log In Create A New Profile

Advanced

Re: Wrong content served

Francis Daly
December 26, 2023 07:00PM
On Tue, Dec 26, 2023 at 07:57:41PM -0300, Daniel A. Rodriguez wrote:

Hi there,

> This behavior is driving me crazy. Currently have more than 30 sites behind
> this reverse proxy, but the latest is refusing to work.

Can you provide more details?

> Config is simple and pretty similar between them all.

"include" means "anything in that file is effectively in this
config". Nobody but you knows what is in that file.

> server {
>     listen 80;
>     server_name material.av.domain;
>
>     include /etc/nginx/snippets/location-letsencrypt.conf;
>
> #    return 301 https://$server_name$request_uri;
>
> }

Your test request is:

$ curl -i http://material.av.domain/

What response do you get? What response do you want to get instead?

The "return" is commented out, so unless there is something surprising
in the location-letsencrypt.conf file, I would expect a http 200 response
with the content of "the default" index.html file.

> If I point the browser to material.av.domain got redirected to another
> sub-domain, among the 30 mentioned before. However, everything else works
> just fine.

Can you show the response to the "curl" request, to see whether "redirect"
is a http 301 from the web server, or is something like a http 200 from
the web server with maybe some javascript content that redirects to
"the wrong" place?

Cheers,

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

Wrong content served

drodriguez December 26, 2023 05:58PM

Re: Wrong content served

Francis Daly December 26, 2023 07:00PM

Re: Wrong content served

jeffdyke December 26, 2023 07:16PM

Re: Wrong content served

drodriguez January 02, 2024 04:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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