Web Hosting Talk







View Full Version : Pointing a single directory to another IP ?


lackeroom
06-03-2004, 07:51 PM
Hello,

I'd like to point a single directory ( http://www.mydomain.com/directory/ ) to another IP. Is this possible ?

I'm using CPanel

Thanks! :D

Kevin2001
06-03-2004, 08:00 PM
Yes, Look under the "Redirects" option in cpanel. It should take both a domain name or ip address.

lackeroom
06-03-2004, 08:11 PM
yea but actually Redirects wont work as I want to do round robin DNS, so pointing is the only way :S

lwknet
06-04-2004, 08:45 AM
afaik, pointing a directory to a different ip using A record(i thk u want it this way?) is impossible

y not a subdomain? it should work fine

Dylan
06-04-2004, 10:36 PM
Search www.apache.org for .htaccess Redirect or mod_rewrite

Should you get lost through the swamp of search results, reply here and I'm sure one of the other WHTers will link you to the correct documentation.

JetServers
06-04-2004, 11:12 PM
If the other site is on the same server, you could make a symbolic link (ln -s /home/.../directory /home/.../other_site

Good Luck,
-Joe

lackeroom
06-05-2004, 09:09 AM
Let me clarify this more plz,

I need to balance load on this directory over 2 servers. I need to point it through A record to work, But no idea how to do so.

How can I do this lwknet ?

lwknet
06-05-2004, 09:58 AM
sorry but the only thing i can say is NO

A records are supplied by the DNS server upon any request by (most probably) browsers, since the browsers do not send the "path elements" together with the "host" to the DNS server, that's no way you can get different A records by different directries, so..for
ht tp://domain.com/dir/page.html

the DNS server only knows domain.com but not "dir" nor "dir/page.html"

if only way seems to be redirect

correct me if i'm wrong