Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Virtual Host Point To Another Server? |
|
Author |
|
KuraKai
Joined: 09 Nov 2007 Posts: 12
|
Posted: Mon 28 Jan '08 19:47 Post subject: Virtual Host Point To Another Server? |
|
|
Is there a way to configure an Apache Server to use a Virtual Host but to instead of running it on the local computer to point to another apache server at a certain IP Address. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Jan '08 18:28 Post subject: |
|
|
In side your vhost you can use a redirect
Code: |
Redirect permanent / http://192.168.0.1
|
|
|
Back to top |
|
KuraKai
Joined: 09 Nov 2007 Posts: 12
|
Posted: Tue 29 Jan '08 23:21 Post subject: |
|
|
Where would I put this? Anywhere specific or just kind of after the parts that declare what hosts the current v-host responds to. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 30 Jan '08 11:01 Post subject: |
|
|
Put that into the vhost block which should redirect. |
|
Back to top |
|
|
|
|
|
|