Jump to content

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/132641-some-quick-hand-holding-about-mod_alias/
Share on other sites

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?

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.

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>

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.