LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   point sub-domain to another URL (https://www.linuxquestions.org/questions/linux-newbie-8/point-sub-domain-to-another-url-780481/)

digity 01-07-2010 03:12 AM

point sub-domain to another URL
 
How do I configure Apache 2 to listen to requests for a sub-domain (intranet.digity.com) and point automatically to a URL (http://www.digity.com:47512/sharingiscaring, its a different web server on the same machine)??

Keep in mind I still want www.digity.com and digity.com to still point to the Apache 2 server (port 80), which they currently do.

centosboy 01-07-2010 03:33 AM

Quote:

Originally Posted by digity (Post 3817272)
How do I configure Apache 2 to listen to requests for a sub-domain (intranet.digity.com) and point automatically to a URL (http://www.digity.com:47512/sharingiscaring, its a different web server on the same machine)??

Keep in mind I still want www.digity.com and digity.com to still point to the Apache 2 server (port 80), which they currently do.

you can use the Redirect directive to do this or the mod_rewrite apache module.

see examples:

http://www.yolinux.com/TUTORIALS/ApacheRedirect.html


All times are GMT -5. The time now is 07:31 PM.