user1283910
user1283910

Reputation: 1

Network routing depending URL Alias

I have 2 websites :

Each one reply on a different IP

How can I configure my local DNS / Hosts file / gateway / vhosts to make the difference between each site and automaticaly solve www.AAAAAAAA.com with the good IP ? (depending if there is /BBBBB in the URL)

Upvotes: 0

Views: 196

Answers (1)

Ryan Jeremiah Freeman
Ryan Jeremiah Freeman

Reputation: 495

I know this one.

Which web server are you using? Apache has a function where you can store, similar to virtual hosts but using a /BBBBB instead I have been trying to find out how to do this as well.

The only way I know of doing this is to run both sites off the same web server using Vhosts. http://httpd.apache.org/docs/2.0/vhosts/ or IIS Bindings for the site.

Using different folders for each would be able to use.

Set these CNAME records in your hosted Domain Name Server and then should be able to access from both.

BBBBB.AAAAAA.com

www.AAAAAA.com

Upvotes: 1

Related Questions