I have a catchall default vhost, cat /etc/nginx/sites-available/default :<br><br><br><br><pre class="bbcode">server {<br>        listen   80 default; <br>        server_name  _;<br>        server_name_in_redirect  off;<br>        resolver  127.0.0.1;<br>
#### www. redirect        - all domains starting with www will be redirected to <a href="http://domain/" target="_blank" rel="nofollow">http://domain</a>. ####<br>    if ($host ~* ^(www\.)(.+)) {<br>        set $rawdomain $2;<br>
        rewrite ^/(.*)$  <a href="http://$rawdomain/$1" target="_blank" rel="nofollow">http://$rawdomain/$1</a> permanent;<br>    }<br>        access_log  /var/log/ispconfig/httpd/$host/access.log;<br>location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|flv|html|htm|mp3)$ {<br>
        root   /var/www/$host/web; <br>        access_log off;<br>        expires 30d;<br>    }<br><br>location / {<br>        root   /var/www/$host/web;<br>        index  index.html index.htm index.php;<br>        access_log      off;<br>        proxy_pass <a href="http://$host:82/" target="_blank" rel="nofollow">http://$host:82</a>;<br>
        proxy_set_header X-Real-IP  $remote_addr;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>}<br>}<br><br></pre>It works perfectly but I want to have other vhosts on the same server 
besides the default catchall one. If I add another server let&#39;s say in 
/etc/nginx/sites-available/<a href="http://domain.com">domain.com</a> Nginx will ignore it. But if I add
 that same server in /etc/nginx/sites-available/default before the 
catchall server then it work perfectly.<br><br>The problem is that it is
 not really practical to keep all the vhosts/servers in the same file.<br><br>Is
 there a way to make this work and not keep all the servers in 
/etc/nginx/sites-available/default file?<br>