I have a catchall default vhost, cat /etc/nginx/sites-available/default : server { listen 80 default; server_name _; server_name_in_redirect off; resolver 127.0.0.1; #### www. redirect - all domains starting with www will be redirected to http://domain. #### if ($host ~* ^(www\.)(.+)) { set $rawdomain $2; rewrite ^/(.*)$ http://$rawdomain/by grungy - How to...
What's the Nginx equivalent of Apache's ServerAlias in this example: <VirtualHost IP:80> ServerAdmin info@domain.ba DocumentRoot /var/www/server/roundcube/ ServerName webmail.server.domain.com ServerAlias webmail.* <Directory /var/www/server/roundcube/> Options -Indexes Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Direcby grungy - Migration from Other Servers