Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi drive configuration...

Status
Not open for further replies.

jwavey

Technical User
Jul 29, 2002
3
US
I am running a web server where I need to serve video files -- housed on 10 drives. I'm using HTML for my design and Apache 1.3 on OS X. I've been able to serve a couple of files from the subdirectories in the root: (Library/webserver/documents) as a test but when I try to link to files on other drives (external or internal second drives) the links don't work.

This may be solved with a change in the Apache config -- but it also might be a problem with my knowledge of HTML.

Can Apache serve files from places other than the root? Can I place an alias in the root and link from there? Is there a web site or book that has this information? (Because I haven't found it after about two weeks of searching)!

Thanks
John
 
This is an Apache configuration issue. You would have to create an Alias for the different drives (not sure how this works on OS X but..). This is how it would look:
Alias /videos2 path/to/second/drive
Alias /videos3 path/to/thrid/drive
etc. This way you would access the videos on different dirves using URLs such as //Daniel
 
Thanks for the help. I did Alias the drives in the Apache config file and I'm getting a permission denied message now.

I tried disabling .htaccess in the config file...no luck. I tried placing a .htaccess file in the root of the external drive (in fact just copying the .htaccess file from the server root -- changing the file-path to the .htpasswd file located in the webserver directory) -- no luck.

I tried slamming my head into the wall -- no luck. I'm going to play golf this afternoon and stop thinking about it for a while...

Any thoughts?

John
 
Does the webserver user (usually nobody or apache) have permissions to read those drives? And have to placed containers in your httpd.conf (or .htaccess) with these lines:
Order allow,deny
Allow from all
//Daniel
 
Let me first make an assumption:

A "container" is the same as a
<Directory
blah,blah,blah
</Directory>
in the apache config file?

Here is what is commented OUT of the config file now:

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/Sites>
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>

Should this be un-commented? (There are no such lines in my .htaccess files).

How do I check the webserver user permissions?

Thanks!

John
 
Yes, a container is a <Directory &quot;/path/to/dir&quot;>.
Those lines are only relevant if you want to have user dir's, shouldn't matter in this issue.
As of the user permissions, I am not sure how to do it in OS X, but you could try and make the drives world readable and world executable. If that doesn't work... then I'm out of ideas, sorry. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top