DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2003, 03:14 PM
Atenciom Atenciom is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 Atenciom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

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

Reply With Quote
  #2  
Old August 1st, 2003, 03:28 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
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;ServerAlias 68.51.39.58
&nbsp;&nbsp;&nbsp;&nbsp;ServerAlias 192.168.1.2
&nbsp;&nbsp;&nbsp;&nbsp;ServerAlias 127.0.0.1
&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
</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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Simple redirecting web site problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway