cant view local domain

  Blues Brothers 12:31 10 Nov 2006
Locked

I've set up a linux web server at home and have 2 domains running on it. The ip of the webserver on the local network is e.g 192.168.2.10 and by connecting to this i can view one of my sites. The question is how can i view the other one when it has the same ip address ?
n.b
The sites can be accessed fine by anyone outside of the local network.

Thanks in advance.

  mgmcc 09:40 11 Nov 2006

What URLs / IP addresses are used from outside the Local Network to be able to differentiate between the two domains?

  Blues Brothers 10:08 11 Nov 2006

I have managed to sort the problem now.
On my windows pc within my network I went into
C:\WINDOWS\system32\drivers\etc\hosts
and added the following
192.168.2.10 click here
192.168.2.10 click here

This redirected my local pc to the correct site on my linux server.

"What URLs / IP addresses are used from outside the Local Network to be able to differentiate between the two domains?"

I have one external ip address, the DNS from the domain name hosting company redirects all requests for either domain to the one ip. The linux server then directs this request to the domain in question.
Pretty sure this is how it works but i'm sure i'll get some replies if not.

Thanks for replying to the thread

  Blues Brothers 10:09 11 Nov 2006

I have managed to sort the problem now.
On my windows pc within my network I went into
C:\WINDOWS\system32\drivers\etc\hosts
and added the following
192.168.2.10 www DOT mydomain1.co.uk
192.168.2.10 www DOT mydomain2.co.uk

This redirected my local pc to the correct site on my linux server.

"What URLs / IP addresses are used from outside the Local Network to be able to differentiate between the two domains?"

I have one external ip address, the DNS from the domain name hosting company redirects all requests for either domain to the one ip. The linux server then directs this request to the domain in question.
Pretty sure this is how it works but i'm sure i'll get some replies if not.

Thanks for replying to the thread

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Best phone camera 2017

Stunning new film posters by Hattie Stewart, Joe Cruz & more

iPad Pro 10.5in (2017) review

28 astuces pour profiter au mieux de votre iPhone