Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think this question isn't that hard for proefssionals but i'm not the best into web servers.

I have the following scenario:

  • one apache web server on RedHat Linux
  • one Homepage (normal HTTP)
  • one Site on a subdomain which should get an SSL certificate

It will be run all on one external IP and the routing to the Websites should be done depending on the URL the user is typing into the browser.

So how is it possible to implement this?

share|improve this question
Yes, it is possible. Can you clarify what issues you're having with configuring it? It's hard for an answer to cover what you need to know without knowing where you're getting stuck. – Shane Madden Apr 24 '12 at 17:26
Are you talking about the two websites being and or two websites being and, both having their SSL version too? – Bruno Apr 24 '12 at 22:01

You need to setup 2 virtual hosts, 2 that are regular vhosts that listen on port 80, and 1 (with the same ServerName as one of the ones on port 80) for SSL.

There's several tutorials for creating vhosts on CentOS/Redhat or Redhat Enterprise that should point you in the right direction.

share|improve this answer

Your Answer


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.