LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-26-2010, 09:09 PM   #1
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Rep: Reputation: 0
How to redirect a m.domain.com/abc to a ip address 123.123.123.123/abc?


Hi,

Recently I need to redirect domain name that is a mobile minisite called m.domain.com/abc to external hosting web server ip with like 123.123.123.123/abc in our apache web server. This website is hosting in external. Our apache is 2.0.53, because I am new in Linux, so I don't know how to work out this.
I want to know that how can I achieve this? Is it just use the DNS to map it or need to config our apache to work out this? I really urgent to know what can I do for it?
Thank you for your kindly help.
 
Old 05-26-2010, 09:30 PM   #2
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 268

Rep: Reputation: 42
If you want everything in m.domain.com to be directed to the external host just put in a DNS record pointing to the appropriate IP.
 
Old 05-26-2010, 09:48 PM   #3
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 49
The easiest way to do this by setting redirection using HTML. Please have a try with the steps mentioned in the following link. It should work for you.

http://snippets.dzone.com/posts/show/384

If you need any other solution, please let me now.
 
Old 05-26-2010, 09:50 PM   #4
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks for your reply first. I just want to redirect only this domain name in m.domain.com/abc to external hosting server with ip 123.123.123.123/abc. but not m.domain.com. Because our webserver hosting all m.domain.com website but the other user want to build a mobile mini site under this domain m.domain.com like m.domain.com/abc and must host it at external web server.
 
Old 05-26-2010, 11:41 PM   #5
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks ComputerErik and blue_print. I want to know that the rewrite method in apache is the only way to achieve it? Have the simpler way? Because we have many mobile mini site will under m.domain.com like m.domain.com/a, m.domain.com/b and m.domain.com/c and all of that must be hosted in external web server.
I also tried to load the module on our apache but it give me the error message after the restart httpd said cannot loadmodule mod_rewrite.so
So, I want to know have any other method to achieve it or how can I load the module in my apache server to enable rewrite funciton for doing this and how to use rewrite to achieve it?
Thank you so much.
 
Old 05-27-2010, 09:05 PM   #6
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Hi, Anybody can answer me?
 
  


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
cant access /proc/123/fd linux_newbie79 Linux - Newbie 1 08-28-2009 04:19 PM
what does 80.23.134.123 8:0 mean? Murdock1979 Linux - Server 1 04-20-2009 03:51 AM
123-reg.co.uk nameservers down? kev82 General 0 09-19-2007 11:40 AM
123 file input is not taking for i in $(cat ./123) procfs Programming 3 07-20-2006 04:10 AM
I only need the disc 123 not all 15 right? coolbreeze7000 Debian 5 01-23-2005 08:50 PM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration