Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We just bought a new server.

We want our old server to respond the https connections(because of ssl certificate) and new server to respond the rest. New server is ready but i don't know how to redirect requests to new one.

mydomain.com => old machine ip
10.10.10.41 => new machine

Requests will come through mydomain.com.

If it is https:
   respond
else
   redirect to 10.10.10.41

How should i configure apache for this situation?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Configure a seperate vhost for the https version of the domain, and use mod_proxy to proxy the request to your internal server. See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass for examples.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.