Hello,
I have to domains that are pointing to the same server IP.
The problem is, apparently they can't both work on port 80.
If I enter port 80 for both server {} entries, I get a 301 header on the non-default site. The other one works fine.
As soon as I change the port from 80 to let's say 81, it works like a charm, but then I have :81 ruining the URL.
Any suggestions?
Thank you very much.
// further information:
Not knowing what I was doing, I changed the port to 81 first.
But I changed it about 2 hours ago, have restarted nginx several times and even the server once, and I still keep getting the 301 header to :81, when entering port 80.
Edited 1 time(s). Last edit at 05/10/2010 02:36PM by dob.