David Piniella
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=Depart ments,OU=x xx xxxxx,DC=ad,DC=xxx
,DC=xxxxx,DC=xxx?sAMAccoun tName?sub? (objectcla ss=person) "
AuthLDAPBindDN "CN=xxxxxxxxxx,OU=xxxxxxxx xxxxxxx,OU =IT-Admin, OU=
xxxxxxx,DC=ad,DC=xxx,DC=xx xxxx,DC=tl d"
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?
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
,DC=xxxxx,DC=xxx?sAMAccoun
AuthLDAPBindDN "CN=xxxxxxxxxx,OU=xxxxxxxx
xxxxxxx,DC=ad,DC=xxx,DC=xx
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER