multiple server_name entries not working with FastCGI?

Michael nginx at thismetalsky.org
Thu Jun 12 01:35:35 MSD 2008


On Wed, Jun 11, 2008 at 22:14:30, Igor Sysoev said...

> > 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.

The FastCGI server in question doesn't care what the name is at all.

-- 
Michael 
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B  ED7A 2EC2 1206 BC3F F6D4
the cake is a lie





More information about the nginx mailing list