Newbie config not catching virtual host.

Nuno Magalhães nunomagalhaes at
Fri Feb 27 16:34:25 MSK 2009

I've changed sites-enabled so that it has default, which is a symlink
to sites-available/default. I have the 40x.html page both in the / and
in /mysite directories, with the right permissions.
I've changed sites-available/default to this

Now i get 301 or redirect loop complaints, depending on the browser.
Also, if i use isntead of i get redirected
to anyway.

Are there any suggestions?

Nuno Magalhães

More information about the nginx mailing list