Forum Moderators: phranque
I was wondering how will I make my [myexample.com...] to a [myexample.com....] I'm looking at the httpd.conf and its a bit confusing. Any ideas on what should I look at first.
Thanks!
i did just the same for the first time recently
(assuming you have generated your ssl public and private keys, for which there are good tutorials at every certificate vendor's site, and assuming you have mod_ssl loaded as an apache module and openssl installed.....)
you have to create a second virtual host container with :443 (the ssl port) at the end of the IP, which has the same docroot, IP and servername as your normal virtualhost container
<VirtualHost XXX.XXX.XXX.XXX:443>
DocumentRoot /var/www/sites/mydocroot
ServerName myserver.com
ErrorLog... etc, etc
(then you need some SSL directives)
SSLEngine On
SSLCertificateFile /etc/ssl/public.crt (or wherever you stored it)
SSLCertificateKeyFile /etc/ssl/private.key (" " ")
(and some more SSL stuff)
</VirtualHost>
there's obviously quite a few more options to include, but i simply used the default directives already in my default httpd.conf file (redhat 7.2) and it worked a treat
hope that puts you in the right direction :)
Thanks for the help I got it working now! I was able to view the site with the [myexample.com....]
One more thing have you ever tried using the site as a punchout. Or has anybody tried using the https site as a punchout. I have this question. When I do a punchout to the site [myexample.com...] it doesn't connect to the site. Anybody knows why it doesn't connect!
Thank you very much