?
Solved

How to change an http site to https in apache2

Posted on 2005-03-05
3
Medium Priority
?
353 Views
Last Modified: 2010-03-04
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?
0
Comment
Question by:David Piniella
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Accepted Solution

by:
bloodredsun earned 520 total points
ID: 13471121
0
 
LVL 9

Author Comment

by:David Piniella
ID: 13471507
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).
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 280 total points
ID: 13471548
apache comes with it own cert, the snaikoil cert.
You may generate your own cert using openssl, but for a trustworthy site that's not recommended, you better by a trusted cert.

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question