Francis Daly
August 03, 2015 06:36AM
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.

> 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 from
> sites-enabled folder but I can access to music.example.com. Site is still
> there.

Did you successfully restart or reload nginx after removing the file?

What response do you get for "curl -i http://music.example.com/"?

What response do you want instead for "curl -i http://music.example.com/"?

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: 178
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