PDA

View Full Version : Resolving DNS to a subfolder of another domain?



Adam Simms
03-07-2011, 09:46 AM
I am using Godaddy dedicated server with simple control panel. I know I can not do this through the control panel, but I do have root access and am will to go edit some files to get this done.

domain1.com has ns1.domain1.com

domain1.com/info/stuff

I want to create a folder on domain1.com named stuff, then point domain2.com to domain1.com/info/stuff so that the stuff folder is the root directory of domain2.com

Seems like it would be a simple dir path edit via bash, but I have no idea what to edit...

Thanks in advance to all you server gurus out there :>

Adam

bizhat
03-08-2011, 03:41 AM
Domains don't point to folders. They just resolve names to IPs. You'd need a http based approach for your problem. In your case you could use mod_rewrite to do either an internal or external redirect on access.