Jump to content

Archived

This topic is now archived and is closed to further replies.

symband

Gaining access to a folder

Recommended Posts

I have a website currently running in X:Apachehtdocs, and I\'m trying to have a link to my mp3 folder for my friends to be able to browse. The folder is X:Music, and I\'ve tried a couple things but haven\'t gotten it to grant access to that folder, always getting \"Forbidden\". This is what I\'ve put in my apache conf file:

 


<Directory "X:/Music">

   AllowOverride None

   Options None

   Order allow,deny

   Allow from all

</Directory>

 

and also

 


ScriptAlias /music/ "X:/Music"

 

I\'ve tried changing it from <Directory \"X:/Music\"> to \"/music\", and also a couple other things, but I have a feeling thats not the problem. Any help?[/code]

Share this post


Link to post
Share on other sites

i know this has really nothing with what you want to do, but you could just put your music folder into your htdocs folder, and put a password on it. i\'m a noob also, otherwise i\'d give you some really super good never fail ya code. :?

Share this post


Link to post
Share on other sites

this can easily be done in unix with symbolic links, does windows have a feature common to that? otherwise, i don\'t think you\'ll be able to stray out of the document root.

Share this post


Link to post
Share on other sites

Use an alias!

 

My document root is a completely different place!

 

I hope this is enough,

P., denmark

 

#

# Aliases: Add here as many aliases as you need (with no limit). The format is  

# Alias fakename realname

#

<IfModule mod_alias.c>

 

   #

   # Note that if you include a trailing / on fakename then the server will

   # require it to be present in the URL.  So \\\"/icons\\\" isn\'t aliased in this

   # example, only \\\"/icons/\\\".  If the fakename is slash-terminated, then the  

   # realname must also be slash terminated, and if the fakename omits the  

   # trailing slash, the realname must also omit it.

   #

   Alias /icons/ \\\"/home/arginine/genchip/apacheServer/icons/\\\"

 

   <Directory \\\"/home/arginine/genchip/apacheServer/icons\\\">

       Options Indexes MultiViews

       AllowOverride None

       Order allow,deny

       Allow from all

   </Directory>

 

   # This Alias will project the on-line documentation tree under /manual/

   # even if you change the DocumentRoot. Comment it if you don\'t want to  

   # provide access to the on-line documentation.

   #

   Alias /manual/ \\\"/home/arginine/genchip/apacheServer/htdocs/manual/\\\"

 

   <Directory \\\"/home/arginine/genchip/apacheServer/htdocs/manual\\\">

       Options Indexes FollowSymlinks MultiViews

       AllowOverride None

       Order allow,deny

       Allow from all

   </Directory>

 

I have a website currently running in X:Apachehtdocs, and I\'m trying to have a link to my mp3 folder for my friends to be able to browse.  The folder is X:Music, and I\'ve tried a couple things but haven\'t gotten it to grant access to that folder, always getting \\\"Forbidden\\\".  This is what I\'ve put in my apache conf file:

 


<Directory "X:/Music">

   AllowOverride None

   Options None

   Order allow,deny

   Allow from all

</Directory>

 

and also

 


ScriptAlias /music/ "X:/Music"

 

I\'ve tried changing it from <Directory \\\"X:/Music\\\"> to \\\"/music\\\", and also a couple other things, but I have a feeling thats not the problem.  Any help?[/code]

Share this post


Link to post
Share on other sites

Still doesn\'t work, I put Alias /music/ \"X:/Music/\" and then the Directory directive, and I still get 403 Forbidden when trying to access the folder through mysite.com/music/. I\'ve even checked the folder permissions, and its set so that everyone has access...so I really dunno what else to do. I know there has to be a way to do it without moving the folder (too inconvenient, its a big folder).

Share this post


Link to post
Share on other sites

×

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.