LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2003, 02:05 PM   #1
AnthonyM
Member
 
Registered: Mar 2002
Location: Toronto, Ontario
Posts: 43

Rep: Reputation: 15
Virtual hosting not on my network using Apache?


Hello,

I need to configure apache to point a virtual host to a web address not on my network.
Example would be
#<VirtualHost www.testsite.com>
<VirtualHost 20x.x.xx.xx>
ServerName www.testsite.com
ServerAlias testsite.com
ServerPath www.newwebsite.com/advisors/
ErrorLog /var/log/apache/virtual/testsite-error_log
TransferLog /var/log/apache/virtual/testsite-access_log
</VirtualHost>

When someone enters testsite.com, I need it to be redirected to newwebsite.com/advisors.

Thank you.
 
Old 10-03-2003, 09:56 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
A redirect in the httpd.conf which is there to provide for a site that has been moved

The other option I can think of is to make serverpath a local folder which has an index.php that will redirect.

The first one is the way to go I believe for several reasons, the main one being that if someone types a folder or filename with the domain you would not redirect that with the index file.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache virtual hosting msound Linux - Networking 3 09-14-2005 06:09 PM
Apache Virtual Hosting abhijeetudas Linux - Networking 2 05-29-2005 04:26 AM
Apache 2.x Virtual Hosting vbfischer Linux - Software 3 04-21-2005 05:17 PM
Apache and Virtual Hosting gcobb Fedora 4 10-29-2004 12:10 AM
Virtual Hosting with apache, i think... dengi Linux - Software 1 10-26-2003 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration