LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-22-2008, 09:49 PM   #1
nkhetia
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
apache redirect to local url


Hi All,

I've following setup in the environment.

local-host1 - running website available to world (www.xxx.org)
local-host2 - running sub-domain-website available to local environment.
(test.xxx.org)

now i want to set apache redirect so that whenever outsite request comes for test.xxx.org, it redirects to local-host2 webserver.

I already configured subdomain in dns which is coming to local-host1 currently.

I tried to use rewriterule as well as redirect but it doesn't work for internal website. It works well if i put some external website.

Any help/idea would be appreciated.

thanks
~N

Last edited by nkhetia; 11-22-2008 at 10:05 PM.
 
Old 11-23-2008, 03:56 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm no apache guru, but I seem to recall having done something similar simply using a NameVirtualHost abd a combination of ProxyPass and ProxyPassReverse.

Probably not the most elegant solution, but I recall it worked.
 
  


Reply



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
redirect url munna_dude Linux - Software 2 02-15-2007 12:18 AM
url redirect Present Linux - Networking 4 01-26-2007 09:08 AM
Apache URL issue - will redirect help... rlprofessional Linux - Newbie 9 06-16-2006 11:43 AM
Apache URL redirect problem kdogksu Linux - Networking 2 03-26-2005 02:22 PM
Apache Virtual URL Redirect nxny Linux - Software 0 07-19-2002 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:34 PM.

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
Open Source Consulting | Domain Registration