logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Host Point To Another Server?
Author
KuraKai



Joined: 09 Nov 2007
Posts: 12

PostPosted: Mon 28 Jan '08 19:47    Post subject: Virtual Host Point To Another Server? Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Jan '08 18:28    Post subject: Reply with quote

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

PostPosted: Tue 29 Jan '08 23:21    Post subject: Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Wed 30 Jan '08 11:01    Post subject: Reply with quote

Put that into the vhost block which should redirect.
Back to top


Reply to topic   Topic: Virtual Host Point To Another Server? View previous topic :: View next topic
Post new topic   Forum Index -> Apache