Running other vhosts beside the catc-all default vhost
nedim at hadzimahmutovic.com
Tue Jun 22 13:02:19 MSD 2010
Got it working...
On Tue, Jun 22, 2010 at 10:42 AM, Nedim Hadzimahmutovic <
nedim at hadzimahmutovic.com> wrote:
> Hi Cliff,
> I'm on Debian and nginx.conf says:
> include /etc/nginx/conf.d/*.conf;
> include /etc/nginx/sites-enabled/*;
> so I guess it is not important if my vhost files are named domain.com or
> domain.com.conf, neither work because of the default server.
> On Thu, Jun 17, 2010 at 8:12 PM, Cliff Wells <cliff at develix.com> wrote:
>> 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 ;-)
>> nginx mailing list
>> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx