Nginx domain work without be into sites-enabled
nginx-forum at nginx.us
Mon Aug 3 11:41:15 UTC 2015
Francis Daly Wrote:
> On Mon, Aug 03, 2015 at 12:12:54AM -0400, Eberx wrote:
> Hi there,
> > I have many subdomains which is created into
> /etc/nginx/sites-enabled. For
> > example
> Your nginx.conf presumably has "include /etc/nginx/sites-enabled/*;"
> so that these files are read when nginx starts.
I added bottom of my nginx.conf file
> > 1. www.example.com
> > 2. music.example.com
> > 3. video.example.com
> > are already enabled. and working fine. But I tried to remove
> > music.example.com from public access. Then I did music.example.com
> > sites-enabled folder but I can access to music.example.com. Site is
> > there.
> Did you successfully restart or reload nginx after removing the file?
> What response do you get for "curl -i http://music.example.com/"?
I get response header
Date: Mon, 03 Aug 2015 11:39:04 GMT
Content-Type: text/html; charset=utf-8
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,
Below this header our website html displayed.
> What response do you want instead for "curl -i
I just want to go default vhost config.
> Francis Daly francis at daoine.org
> nginx mailing list
> nginx at nginx.org
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260717,260724#msg-260724
More information about the nginx