multiple server_name entries not working with FastCGI?

Igor Sysoev is at rambler-co.ru
Wed Jun 11 22:14:30 MSD 2008


On Wed, Jun 11, 2008 at 11:46:22AM -0400, Michael wrote:

> On Tue, Jun 10, 2008 at 14:20:35, Michael said...
> 
> > If I browse to http://test.domain.com/ the FastCGI app runs fine.
> > 
> > If I browse to http://test/ it doesn't, at all, a blank page is shown.
> > 
> > Removing the FastCGI app, and using an index.html, both of these work properly.
> 
> I worked around this problem like so:
> 
> server_name test test.domain.com;
> 
> if ($host !~ \.domain\.com) {
> 	rewrite ^(.*)$ http://$host.domain.com$1 permanent;
> }
> 
> Odd that I had to do this.

Probably FastCGI server is not configured to work with short name.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list