| Linode Forum https://forum.linode.com/ |
|
| DNS Basics https://forum.linode.com/viewtopic.php?f=19&t=3544 |
Page 1 of 1 |
| Author: | andrewz [ Mon Sep 22, 2008 10:56 am ] |
| Post subject: | DNS Basics |
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 |
|
| Author: | jfried [ Mon Sep 22, 2008 11:06 am ] |
| Post subject: | DNS does not function that way |
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> |
|
| Author: | atourino [ Mon Sep 22, 2008 11:08 am ] |
| Post subject: | |
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 |
|
| Author: | andrewz [ Mon Sep 22, 2008 11:13 am ] |
| Post subject: | |
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. |
|
| Author: | atourino [ Mon Sep 22, 2008 12:16 pm ] |
| Post subject: | |
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. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|