hello, what is the way to convert this apache vhost directive to nginx?
[code]
<VirtualHost *:80>
ServerName example.com
ServerAlias vhost1.example.com
ServerAlias vhost2.example.com
RewriteEngine On
RewriteRule ^/(.*) http://localhost:8080/$1 [P]
</VirtualHost>
[/code]
also is there a way to read a list of ServerAlias'es dynamically, for example from a python list, ['vhost1.example.com', 'vhost2.example.com'...]
thanks
norman