Welcome! Log In Create A New Profile

Advanced

Re: Is it possible to use a remote file to store servernames? server_name $somevariable-file?

Ruslan Ermilov
November 28, 2011 07:04AM
On Mon, Nov 28, 2011 at 06:52:59AM -0500, anagio wrote:
> Isn't include only for nginx.conf file? How would I add this to the
> sites-available/server file to include a remote file with list of
> sub-domains?

You can rsync/scp/curl/whatever the file in your preferable
format (with server names one per line), then generate an
nginx.conf syntax-compliant file with "server_name XXX;"
lines, then send the HUP signal (for details, please see
http://nginx.org/en/docs/control.html) to the master nginx
process, and have it update the configuration on the fly.
It's all pretty easy to achieve, and doesn't require adding
the "fetching" functionality to nginx.

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

Is it possible to use a remote file to store servernames? server_name $somevariable-file?

anagio November 28, 2011 05:44AM

Re: Is it possible to use a remote file to store servernames? server_name $somevariable-file?

Ruslan Ermilov November 28, 2011 06:46AM

Re: Is it possible to use a remote file to store servernames? server_name $somevariable-file?

anagio November 28, 2011 06:52AM

Re: Is it possible to use a remote file to store servernames? server_name $somevariable-file?

Ruslan Ermilov November 28, 2011 07:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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