Link to home
Start Free TrialLog in
Avatar of psimation
psimationFlag for South Africa

asked on

How to configure SSL for my VirtualHosts on Apache 2

Hi
Can someone plz help with some examples of an httpd.conf file of how to configure SSl support for a) entire VirtualHost folder, and b) only certain sub-folder of a VirualHost. I also need help to create the certificates etc (self signed).

Thx
ASKER CERTIFIED SOLUTION
Avatar of blkline
blkline

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of psimation

ASKER

Would it then be possible to use only one domain, the FQDN of the server? IE, if one of my virtualhosts needs secure folder, I just point it to a subfolder of the "top" domain?  
Avatar of blkline
blkline

Yes.   You can have virtual hosts and SSL on the same box, just ensure that your default host is the one configured for SSL and use that.
Well, that's sort of why I asked the question... Can you give me examples of how to configure it?
A complete guide to configuring Apache and SSL can be found at:

http://www.thawte.com

Look in the upper right-hand corner of the screen and you'll see the guide available.  Don't be put off by the fact that it mentions Thawte, the configuration is the same for whichever  certificate you choose.

The file you'll need to configure is:   /etc/httpd/conf.d/ssl.conf

The default virtual host is the first one in your httpd.conf file.

If you have specific questions after checking that guide then be sure to post away!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial