Adding storage to an Apache server
I run a small web server from my house, and I'm thinking I may need to add more space. How do I do something like, host files on another hard drive? I'm under the impression that for anything to be web-accessible, it needs to be in the htdocs folder. How can this be accomplished when that new drive is obviously not in there?
Keep in mind I'm pretty noobish when it comes to this. The server is set up to host files, and for hosting a forum for my friends and I.
On another note, how do I prevent people from looking through all the different folders on there? Should I just make an index.html for every folder that says "Move along"? Is there another way.
If it helps, the OS is Windows 2000. I know, not the best choice, but I'm not comfortable enough with any *nix to use that, although I may try switching to Ubuntu Server Edition at some point.
Keep in mind I'm pretty noobish when it comes to this. The server is set up to host files, and for hosting a forum for my friends and I.
On another note, how do I prevent people from looking through all the different folders on there? Should I just make an index.html for every folder that says "Move along"? Is there another way.
If it helps, the OS is Windows 2000. I know, not the best choice, but I'm not comfortable enough with any *nix to use that, although I may try switching to Ubuntu Server Edition at some point.
Comments
And there should be a directory level option to disallow directory listing. I think you have to remove "AllowINDEX" or something like that.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Alias /virtualdirectoryname/ "E:/MyVirDir/"
<Directory "E:/MyVirDir/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory><!--c2--></div><!--ec2-->
This will set up a directory that is accessible by <a href="http://yourhostname/virtualdirectoryname" target="_blank">http://yourhostname/virtualdirectoryname</a>
With the default httpd.conf, the default setting for folders is to not list directory contents. However, this is overridden by the directory config of your DocumentRoot. Say your document root is "C:/htdocs", do a search for <b><Directory "C:/htdocs"></b>
Inside those tags, look for the line:
<b>Options Indexes FollowSymLinks</b>
I think if you remove "Indexes" from that line it will remove directory listing from your root folder. Also remove it from your aliased directory config if you don't want that directory to list their contents.
After saving your httpd.conf file, restart Apache.