Running other vhosts beside the catc-all default vhost
cliff at develix.com
Thu Jun 17 22:12:52 MSD 2010
On Thu, 2010-06-17 at 16:41 +0200, Nedim Hadzimahmutovic wrote:
> I have a catchall default vhost,
> cat /etc/nginx/sites-available/default :
So Debian or Ubuntu....
> 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's say
> in /etc/nginx/sites-available/domain.com Nginx will ignore it.
That's because the name should be sites-available/domain.com.conf. If
you look in nginx.conf you'll see that it includes
sites-available/*.conf, not *.com ;-)
More information about the nginx