1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Rep Power

    Angry Simple redirecting web site problem

    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


    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 www.toonbox.com.

    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.

  2. #2
  3. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    OH, USA
    Rep Power
    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 *>
    &nbsp;&nbsp;&nbsp;&nbsp;ServerName serialcoders.sytes.net
    &nbsp;&nbsp;&nbsp;&nbsp;DocumentRoot "D:/Website"

    &nbsp;&nbsp;&nbsp;&nbsp;...other directives...

    &nbsp;&nbsp;&nbsp;&nbsp;LogLevel warn
    &nbsp;&nbsp;&nbsp;&nbsp;ErrorLog logs/error.log

    &nbsp;&nbsp;&nbsp;&nbsp;LogFormat "%h %{%D %T}t %m %U%q %>s %{User-Agent}i %{Referer}i %{Cookie}i" tabbed
    &nbsp;&nbsp;&nbsp;&nbsp;CustomLog logs/access.log tabbed
    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

IMN logo majestic logo threadwatch logo seochat tools logo