|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have three basic websites:
- thinkbox.com - kindlepark.com - caspersspookymanision.com All three are hosted by the same Lotus Domino Server and have different IPs. I've created a new ZONE on my DNS svr called: toonbox.com And I've put a WWW record and given it the IP of URL I want anyone who goes to toonbox.com be redirected to thinkbox.com. This can't be that difficult. Anyway, during testing, I get a login page instead of Thinkbox site. My address bar (IE) says URL Now, this login page is the same page that I get when the server doesn't know what site to display (like when I browse to the IP instead of a name) MY THEORY: IE says "I want toonbox.com" but the web server doesn't have a toonbox.com and so it just puts up the login page. So how do I get my DNS server to force IE to say "I want thinkbox.com" even though the user typed in "www.toonbox.com". Can a DNS svr do that? Or maybe this is a webserver problem where I have to add a fourth site to it and have little script that forwards it to thinkbox.com. Martin |
|
#2
|
||||
|
||||
|
Yes your webserver virtual hosts needs to be changed to do what you want. You don't need to setup a fourth site though. You can specify a server alias (if you're using apache).
The below is an example of how a single site accepts multiple hosts. ServerAlias's may also be domains, don't be fooled by how I just have IP's stuck in there. Keep in mind that the first VirtualHost directive will be used as default. Basically, if somebody gets to your site with the HOST field set to something wierd, and non of your virtual host directives explicitly handle it, the first one will be used. <VirtualHost *> ServerName serialcoders.sytes.net ServerAlias 68.51.39.58 ServerAlias 192.168.1.2 ServerAlias 127.0.0.1 DocumentRoot "D:/Website" ...other directives... LogLevel warn ErrorLog logs/error.log LogFormat "%h %{%D %T}t %m %U%q %>s %{User-Agent}i %{Referer}i %{Cookie}i" tabbed CustomLog logs/access.log tabbed </VirtualHost>
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Simple redirecting web site problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|