Francis Daly
August 03, 2015 11:16AM
On Mon, Aug 03, 2015 at 07:41:15AM -0400, Eberx wrote:
> Francis Daly Wrote:

Hi there,

> > What response do you get for "curl -i http://music.example.com/"?
>
> I get response header
>
> Server: nginx
> Date: Mon, 03 Aug 2015 11:39:04 GMT
> Content-Type: text/html; charset=utf-8
> Transfer-Encoding: chunked
> Connection: keep-alive
> Vary: Accept-Encoding
> Set-Cookie: example=lda48dtiqiaqg46paqulh9ov56; path=/; domain=.example.com
> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> Pragma: no-cache
>
> Below this header our website html displayed.

Is "our website html" from music.example.com or from www.example.com or
from something else?

> > What response do you want instead for "curl -i
> > http://music.example.com/"?
>
> I just want to go default vhost config.

What is your default vhost config?

If you want specific help, you will need to give specific details.


How nginx chooses which server{} block to use is described at
http://nginx.org/en/docs/http/request_processing.html

If you can create a config file where your nginx does not do what that
page describes, then you will have found an interesting bug.

So: in your nginx.conf, plus any file that is "include"d in there,
look at all of your server{} blocks, and in them, look at all of your
"listen" and "server_name" directives.

Then follow what that web page says, and identify which one server{} block
nginx should use to handle your request for http://music.example.com/.

Is that the server{} block that you want nginx to use?

If not, make whatever changes are needed so that it is.

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 domain work without be into sites-enabled

Eberx August 03, 2015 12:12AM

Re: Nginx domain work without be into sites-enabled

Francis Daly August 03, 2015 06:36AM

Re: Nginx domain work without be into sites-enabled

Eberx August 03, 2015 07:41AM

Re: Nginx domain work without be into sites-enabled

Francis Daly August 03, 2015 11:16AM

Re: Nginx domain work without be into sites-enabled

Eberx August 04, 2015 12:03AM

Re: Nginx domain work without be into sites-enabled

Francis Daly August 05, 2015 03:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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