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

anagio nginx-forum at
Mon Nov 28 10:44:32 UTC 2011

I need to add a lot of sub-domains to a configuration file as users
register on our website our script needs to add the sub-domain. Is it
possible to use a variable or function in the config file so it loads a
remote file which has sub-domains listed one per line? It would be
easier for our developers to add a sub-domain one per line into a file.
Then trying to add them into the configuration file directly.

server_name  $some-function;

Posted at Nginx Forum:,219193,219193#msg-219193

More information about the nginx mailing list