Dismal_Nihility Posted November 13, 2008 Share Posted November 13, 2008 i know nobody likes noobs who flood the forums looking for quick answers without doing any work, but i assure you that i have been googling for HOURS. it seems im just an idiot. i set up an apache server using lifehackers guide. it went really well. everyones running GREAT. i have one problem that im hoping is easy to fix. my documentroot is set to 'E:'. i have four hard drives in my server pc, one for each type of file (video, music, etc.) when i go to my webpage online, all i get is my 'E:' directory, naturally, since its the root. so how do i add other directories? 'F:', for instance? PLEASE do not refer me to apache's mod_alias page. i have NO IDEA what im looking at. i tried everything, but im finding it way to confusing. i just want to add a few simple directories, with default settings. nothing complicated. if someone could just tell me what code to put in the httpd file, and where to put it, i'd be eternally grateful! thanks in advance for the handholding! Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/ Share on other sites More sharing options...
Dismal_Nihility Posted November 14, 2008 Author Share Posted November 14, 2008 i dont understand. is this asking too much? i didnt mean to seem arrogant. ive literally been sitting here googling, and guessing, for several more hours now, refrshing this page evry few minutes. no replies? please, someone, how do i add a directory outside of the documentroot? please? please? Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689881 Share on other sites More sharing options...
foxtrotwhiskey Posted November 14, 2008 Share Posted November 14, 2008 Hey Dismal_Nihility, I might be able to help you. Here's an example that I tried on my computer, and it works fine. I wanted to point "http://localhost/hello/" to my local "C:/Videos" folder. I added these lines to my httpd.conf file and restarted apache: Alias /hello/ "C:/Videos" <Directory "C:/Videos"> AllowOverride All Options Indexes Order allow,deny Allow from all </Directory> Just change it up to match what you want to do. And let me know if it works for you. Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689885 Share on other sites More sharing options...
foxtrotwhiskey Posted November 14, 2008 Share Posted November 14, 2008 Actually it seems to work better if you take the slash off of "/hello/" in the first line So like this: Alias /hello "C:/Videos" <Directory "C:/Videos"> AllowOverride All Options Indexes Order allow,deny Allow from all </Directory> Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689892 Share on other sites More sharing options...
corbin Posted November 14, 2008 Share Posted November 14, 2008 The slash is supposed to match. In Alias <blah> <bleh>, if there is a slash in blah, it's supposed to be there in bleh. If it's not in blah, it shouldn't be in bleh. Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689913 Share on other sites More sharing options...
foxtrotwhiskey Posted November 14, 2008 Share Posted November 14, 2008 Ahh I see how that works now. When I had the slash in blah and not bleh, I was only able to see the Index of the folder, but not actually access any files/folders in there. Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689925 Share on other sites More sharing options...
corbin Posted November 14, 2008 Share Posted November 14, 2008 Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689928 Share on other sites More sharing options...
Dismal_Nihility Posted November 14, 2008 Author Share Posted November 14, 2008 i really, really want to thank you guys for taking time to help me. i havent tried it yet. im about to. i might have some questions. but either way, thanks guys. Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689937 Share on other sites More sharing options...
Dismal_Nihility Posted November 14, 2008 Author Share Posted November 14, 2008 so, what you showed me completely works. what i wanted was, when i go to my ip (or my domain, once i link it to my ip), i get a link to each drive. instead of jsut an index of the root. im seeing now that the only way its possible is to make an actual webpage, and have hyperlinks to each drive, serving each drive up with the methods you helped me with. i dont suppose theres any way you guys know how to link apache to default to a built website file, that i could make with frontpage or something, instead of indexing a folder, do you? Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-689953 Share on other sites More sharing options...
foxtrotwhiskey Posted November 14, 2008 Share Posted November 14, 2008 All you should need to do in that case it put a file called index.html in the folder. If that file is there Apache will automatically load it instead of the index. Quote Link to comment https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/#findComment-690326 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.