logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How can I connect to multiple drives?
Author
Adair



Joined: 23 Sep 2012
Posts: 2
Location: USA

PostPosted: Sun 23 Sep '12 8:57    Post subject: How can I connect to multiple drives? Reply with quote

Hello,
Apache is very new to me. The only reason I found it, and this may seem silly, is because I was looking for a way to stream media to my Nexus7 tablet while I hang out in the living room with my 1.5 year old boy.

So currently I'm just looking for local wireless streaming and so far Apache has been working well for me, but I have various media on a few different drives. Thus far I've been unable to figure out how to stream from more than one location(and it's subfolders).

I'm using Windows 7 Ultimate x64.
I installed XAMPP with Apache 2.4.2

I have been reading some tutorials and such and have used httpd.conf to change the document root and directory with some success.

I also have read a little about adding in some lines to create an Alias, but when I tried to follow the example given(which was actually here) I couldn't restart the Apache service.

So I guess my question is how to setup an Alias:

1)What directory settings need to go with it?

2)Do the lines need to be inserted in a specific place within httpd.conf?

3)Does any other line within httpd.conf need to be modified to make it work?

Thanks very much for any help provided.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 23 Sep '12 11:42    Post subject: Re: How can I connect to multiple drives? Reply with quote

Adair wrote:

I also have read a little about adding in some lines to create an Alias, but when I tried to follow the example given(which was actually here) I couldn't restart the Apache service.


What do you get in the Apache error.log and/or in the Windows Event Viewer ?

Also what do you get when you test Apache in a Command windows:

>httpd.exe -t


Steffen
Back to top
Adair



Joined: 23 Sep 2012
Posts: 2
Location: USA

PostPosted: Mon 24 Sep '12 6:37    Post subject: Reply with quote

After creating this thread I managed to get Aliases working pretty well. I created Aliases to the roots of most of the drives I wanted access to.

Here are the Directory settings I used:
Options +Indexes
AllowOverride None
Order allow,deny
Allow from all

I haven't yet figured out what each of these Directory settings do. I was googling Aliases and found someone describing a similar intention to my own(but for a website) so I just copied their settings.

Do any of those settings seem like they ought to be different?

Even though I found the answer elsewhere, I do truly appreciate this site/forum. I think I'll keep learning Apache and the other parts of WAMP little by little. Maybe I'll have more questions soon.

One more question: when I view a directory through Apache it gives me the default view of a column of folders and files with a date and a size column as well. Is there a way to make the folder/file column bigger so I can see more of each file's name? Some of the files have long file names that get cut off.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 24 Sep '12 13:44    Post subject: Reply with quote

Hints:

See http://httpd.apache.org/docs/2.4/mod/mod_autoindex.html for complete info on just all you can do to tweak those indexes. You can make them quite pretty if you wanted.

in Apache's conf/extra directory there is a file named httpd-autoindex.conf. Where IndexOptions is, add NameWidth=* ,this will autofit to the longest filename there.

You will need to Include this file in your httpd.conf file. There is a commented out line for doing just that near the bottom of the file.

As far as your Directory settings, they are modest but fine for just directory indexes.

You might want to start using and get used to the 2.4 access directives instead of the 2.2 ones you are using. Doing so you can drop the need of mod_access_compat.

2.2.x;
Order allow,deny
Allow from all

same thing in 2.4.x;
Require all granted

Keep plugging away at the documents as time permits, good place to quick start is the run time directives page.
Back to top


Reply to topic   Topic: How can I connect to multiple drives? View previous topic :: View next topic
Post new topic   Forum Index -> Apache