Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: DNS Basics
PostPosted: Mon Sep 22, 2008 10:56 am 
Offline
Senior Newbie

Joined: Sun Oct 21, 2007 10:07 pm
Posts: 8
Hi,
I am wondering if there is a way to direct a domain to load a specific page. I only see a place to enter an ip address in the A/AAA record but is there a way to enter something like 111.222.333.444/page.html?

Or how would I achieve this?

thanks
Andrew


Top
   
PostPosted: Mon Sep 22, 2008 11:06 am 
Offline

Joined: Sat Aug 30, 2008 7:25 pm
Posts: 1
AOL: churchofbsd
DNS is purely IP to Name and Name to IP.

What you are looking for is a webserver related. Apache or lighttpd can achive what you are looking for.

In apache research <VirtualHost>


Top
   
 Post subject:
PostPosted: Mon Sep 22, 2008 11:08 am 
Offline
Junior Member

Joined: Wed Jan 23, 2008 9:49 pm
Posts: 34
That is something better left for the webserver. You are assuming all DNS lookups are web related. Some are FTP clients or SSH clients. If you want a web request for yourdomain.com to be forwarded to 111.222.333.444/page.html you have a few options.

The easiest of which is probably to configure apache (or your web server of choice) to automatically send a 301 (Moved permanently HTTP Status) to the requesting browser so that the it will, in turn, retrieve the new page your web server points it to.

See the "Redirect Directive" in this page:
- Mod_alias documentation for Apache 2.0


Top
   
 Post subject:
PostPosted: Mon Sep 22, 2008 11:13 am 
Offline
Senior Newbie

Joined: Sun Oct 21, 2007 10:07 pm
Posts: 8
my problem is this site does not live on my server, so I cannot get to apache conf. I own a second domain that I want to bring up a sub page on this site.


Top
   
 Post subject:
PostPosted: Mon Sep 22, 2008 12:16 pm 
Offline
Junior Member

Joined: Wed Jan 23, 2008 9:49 pm
Posts: 34
Well, have your second domain point to a server you *can* control and have that web server redirect browsers to the subpage in the original server you cannot control.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group