On Tue, 2007-08-14 at 01:44 +0200, D. Krmpotic wrote:
> Definitelly Nginx + Mongrel is a great combo...
> 
> Does anyone know how exactly Nginx configuration works? By default there
> is no path under Location / {} and still "Welcome to Nginx" is
> displayed.. is Nginx actually serving some file or does it have set
> internally IF no path then produce welcome message..?
> 
> Also curious about server_name.. if I specify www.server.com there,
> I can still access this vhost with some other uri, that also points to
> the same ip (but is not listed in server_name line).. how come?
> 
> thanx
> david

Nginx was originally developed in Russia, and as such most of the
original documentation is only in Russian.  There is an English wiki
however with very good documentation.  

http://wiki.codemongers.com/Main?action=show&redirect=Nginx


Nginx config files seem to use whatever domain name is listed first as
the default domain, so if a page request doesn't match the pattern for
any of the vhosts then it will serve that one by default.  You also need
to be explicit with accepting subdomains, or wildcard subdomains or you
will end up having those all go to the default domain.  It's important
to check the nginx log files to see what is going on.  If there is a
syntax error in the config it will revert to default behavior, and
ignore all of your configuration.  

This example that we use with PLANET ARGON hosting might help you though
I'm sure you would have to modify it for your needs.  

http://docs.planetargon.com/Nginx_Configuration

-- 
Daniel Johnson
Systems Administrator

PLANET ARGON, LLC
Ruby on Rails Development, Consulting & Hosting

www.planetargon.com
http://teknot.us [blog]
teknotus [freenode IRC]
+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to