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:
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.