Welcome! Log In Create A New Profile

Advanced

2 Domains on same IP

Posted by dob 
dob
2 Domains on same IP
May 10, 2010 02:27PM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready