Forum Moderators: phranque

Message Too Old, No Replies

Newbie: Configure Apache and SSL to make link https

         

stewygenie

10:27 am on Apr 22, 2004 (gmt 0)

10+ Year Member



Hi,

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!

jamie

6:13 pm on Apr 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi stewygenie,

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 :)

stewygenie

7:44 am on Apr 27, 2004 (gmt 0)

10+ Year Member



Hi Jamie,

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

jamie

8:33 am on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



sorry stewy,

don't know what a punchout is. maybe someone else can help?