I started my professional life as a techie. I was never hard core by any definition but I enjoyed learning about the different things that could be done with code. I did a lot of development work using Microsoft products [and was twice involved in the creation of some absolutely dynamite applications] but always had a healthy interest in open source applications too. So today I decided to brush off the cobwebs off my old Apache Server manual and decided to install it once more on my laptop.
Apache Installation
To my pleasant surprise, I already had an instance of Apache server installed on my laptop. However I had to make some minor configuration changes to make the server root and the document root point to my new external hard drive. Least to say, it took me a few minutes to figure out what to change in the Apache configuration file for this effect to take place.
Usually, the hardest thing to control in server applications is the configuration set up. So without further ado, I ll quickly reveal the great tricks I pulled to change my server set up.
Making Apache look in a new place for all files
My intention was to make Apache server look in the F drive as opposed to the C drive it was originally looking in.
1 - #ServerRoot “C:/Apache2″ - this was original set up as per original install. Changing it to point to F drive.
ServerRoot “F:/Apache”2 - #DocumentRoot “C:/Apache2/htdocs”
DocumentRoot “F:/Apache/htdocs”3- <Directory “F:/Apache/cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
This is all that I had to do to make Apache look else where for all the cool code and script files I ll be creating. Download the sample config file below and change the path values to what they should be on your machine.
Remember to save the file as httpd.conf. Hopefully this will help someone in need.