Alexandr Gomoliako
November 19, 2011 07:34PM
On Sun, Nov 20, 2011 at 2:17 AM, anagio <nginx-forum@nginx.us> wrote:
> Hi,
>
> In your example does that mean I would need to add entries for each
> sub-domain as needed. If that's the case, wouldn't I have to restart
> nginx each time a new entry is made? I plan to have sub-domains created
> when users register. Will I have to restart?

No, just reload, which is safe.

But if that's a problem, you can extract subdir with regex
in the same map, something like this:

~^(?<sub>[a-zA-Z0-9-]+)\.bar\.com$ $sub;

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx mass dynamic virtual hosts like apache?

anagio November 19, 2011 05:25PM

Re: Nginx mass dynamic virtual hosts like apache?

Alexandr Gomoliako November 19, 2011 05:56PM

Re: Nginx mass dynamic virtual hosts like apache?

anagio November 19, 2011 07:17PM

Re: Nginx mass dynamic virtual hosts like apache?

anagio November 19, 2011 07:41PM

Re: Nginx mass dynamic virtual hosts like apache?

Alexandr Gomoliako November 19, 2011 07:34PM

Re: Nginx mass dynamic virtual hosts like apache?

Alexandr Gomoliako November 19, 2011 07:58PM

Re: Nginx mass dynamic virtual hosts like apache?

anagio November 20, 2011 04:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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