Home arrow Apache arrow Page 4 - Installing Apache With SSL: The Complete Guide

Installing Apache With SSL: The Complete Guide

Ever wanted SSL security support on your web site? If so, then take a look at this article. In it, Will teaches us how to install OpenSa Server -- Apache mixed with SSL support.

Author Info:
By: William Young
Rating: 4 stars4 stars4 stars4 stars4 stars / 28
December 16, 2002
  1. · Installing Apache With SSL: The Complete Guide
  2. · Configuring Your OpenSa Server
  3. · Running SSL Automatically
  4. · Configuring Your Http.Conf File

print this article

Installing Apache With SSL: The Complete Guide - Configuring Your Http.Conf File
(Page 4 of 4 )

Now let's configure your httpd.conf file. This part will be easy and after a few changes you'll be set and we'll be done with everything.

Advanced Users: If you've saved your previous httpd.conf file, then simply adjust the settings in this file to your liking.

With httpd.conf opened in notepad, press ctrl+f and type Document "C:/OpenSa/Apache/htdocs" in the find box. Notepad will take you directly to the line you need to work on. Adjust it to where you want your root directory to be. For example, if you've created a folder named website on your C drive, then change the line to C:/website.

Press ctrl+f again and type in Document "C:/OpenSa/Apache/htdocs". Notepad will take you to the next line you need to edit. Now change this line to what you put in the line from the last step, such as "c:/website".

[Note] Change only the lines enclosed in quotation marks. Leave everything else in tact. [End Note]

Lastly, we'll configure SSL to redirect to your homepage, so that you won't get the test page anymore.

[Note] If you ever need to overwrite your index page with the default one, then it's located in c:\OpenSA\Apache\htdocs\index.html. [End Note]

Yet again, press ctrl+f and in the find box type VirtualHost _default_:443. Find the following lines:

DocumentRoot "C:/OpenSA/Apache/htdocs"
ServerName localhost

Now change the document root to your own directory (ex: c:/website). You can actually leave the servername as localhost.

Save everything and close your httpd.conf file. Make sure you've made Apache start as a service by going to services and install service, then clicking on start service. You should get a command prompt window when you do. This means that it is running in the background.

Restart your computer. You shouldn't have the command prompt window when you run Apache. Make sure everything is up and running by typing in both http://localhost/ and https://localhost/ in your browser. If both work, then congratulations on setting up your very own OpenSa Server!
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- Programmatically Manipulating Microsoft Exce...
- Installing PHP under Windows
- Compressing Web Content with mod_gzip and mo...
- Compressing Web Output Using mod_deflate and...
- Setting Up Apache 2.0.45 to Parse PHP Pages
- Custom Error 404 Documents with PHP
- Using Apache and PHP on Mac OS X
- ASP: Active Sessions, Active Logins and Tota...
- Working With Oracle on Windows: Part 1
- The Quick-n-Dirty Guide to Setting Up Apache...
- Installing Apache With SSL: The Complete Gui...
- 7 Powerful .htaccess Customization Tips
- Trap And Get Notified: A Practical Solution ...
- One Way To Use Server Side Includes
- Using ForceType For Nicer Page URLs

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials