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 to create a virtual directory on a different drive
Author
awdboxer



Joined: 11 Feb 2010
Posts: 9

PostPosted: Wed 27 Oct '10 0:17    Post subject: How to create a virtual directory on a different drive Reply with quote

So I have this media server and we'll be attaching different drives for each year but can't figure out how to make a virtual directory pointing to another drive in Apache. The way I have it set up now when trying to hit x.x.x.x/2010/01/whatever.jpg I get a 403 Forbidden error. In the error.log I'm seeing "client denied by server configuration: E:/www/media/web/assets/01" but notice "2010" isn't in there...shouldn't it say E:/www/media/web/assets/2010/01?

Code:


#---------------------------------------------#
#  2007-2009                                  #
#---------------------------------------------#

<Directory "D:/www/media/web/assets/">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<VirtualHost x.x.x.x:80>
    DocumentRoot "D:/www/media/web/assets/"
    ServerName yo.com
</VirtualHost>



#---------------------------------------------#
#  2010                                       #
#---------------------------------------------#

<Directory "E:/www/media/web/assets/">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<VirtualHost x.x.x.x:80>
    DocumentRoot "E:/www/media/web/assets/"
    ServerName yo.com   
</VirtualHost>


I've tried putting an alias in there, like so
Code:
Alias /2010 "E:/domains/mediasite/LMS/assets"

but I can't seem to get that working either.

What am I missing??

Thanks!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Fri 05 Nov '10 20:17    Post subject: Reply with quote

Is the user apache runs allowed to access that directory? Is it a networkdrive or a real hardware drive? What about the folder permissions?
Back to top


Reply to topic   Topic: How to create a virtual directory on a different drive View previous topic :: View next topic
Post new topic   Forum Index -> Apache