Apache
  Home arrow Apache arrow Page 4 - Installing Apache With SSL: The Complete G...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Installing Apache With SSL: The Complete Guide
By: William Young
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 26
    2002-12-16

    Table of Contents:
  • Installing Apache With SSL: The Complete Guide
  • Configuring Your OpenSa Server
  • Running SSL Automatically
  • Configuring Your Http.Conf File

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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.

     

    APACHE ARTICLES

    - 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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek