Link to home
Start Free TrialLog in
Avatar of David Piniella
David PiniellaFlag for United States of America

asked on

How to change an http site to https in apache2

I've got apache2 on a Sparc box running FreeBSD 5.3-RELEASE. I'd like to get some of the virtualhost sites that it's serving to do https. What do I change in the httpd.conf to do this? I admin the box via ssh and webmin, so either way is good, but I'd prefer to know how to do it via CLI as opposed to webmin.

here's a snippet of my virtualhost for one of the sites from my httpd.conf:
<VirtualHost 10.10.1.1>
DocumentRoot /usr/local/www/myhost
ServerName myhost.xxxx.xxxxxx.tld
<Directory "/usr/local/www/myhost">
AllowOverride None
order allow,deny
allow from all
Options +Indexes
AuthType Basic
AuthLDAPAuthoritative on
AuthLDAPEnabled on
AuthName "Documents and Downloads"
AuthLDAPUrl "ldap://ldap.xxx.xxxxx.tld/OU=Departments,OU=xxx xxxxx,DC=ad,DC=xxx
,DC=xxxxx,DC=xxx?sAMAccountName?sub?(objectclass=person)"
AuthLDAPBindDN "CN=xxxxxxxxxx,OU=xxxxxxxxxxxxxxx,OU=IT-Admin,OU=
xxxxxxx,DC=ad,DC=xxx,DC=xxxxxx,DC=tld"
AuthLDAPBindPassword xxxxxxxxx
require valid-user
</Directory>
</VirtualHost>

Will I need to set up a cert for the site, and how would I do so under apache2 if this is necessary?
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

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 David Piniella

ASKER

so which of those methods is most ideal for my situation and will I need to create a cert for the site? I understand that apache2 does ssl natively (built-in) as opposed to apache 1.3 (where you had have an ssl add-on).
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