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.

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
2  
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 http://example.com and https://example.com or two websites being http://example.com and http://www.example.com, both having their SSL version too? –  Bruno Apr 24 '12 at 22:01
add comment

1 Answer

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
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.