LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2010, 04:12 AM   #1
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
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.
 
Old 01-07-2010, 04:33 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by digity View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I forward a domain to another URL? apache2 Linux - Server 4 01-21-2009 02:44 AM
URL rewriting for sub-domain scls19fr Linux - Server 6 10-06-2008 12:56 AM
.htaccess domain / url forwarding max_tcs Linux - Software 1 12-17-2007 11:40 AM
How to configure domain name to point at IP address amunguia Linux - Networking 3 01-16-2006 06:00 AM
Apache directory preceding domain in url MasterC Linux - Networking 9 03-14-2005 07:32 AM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration