Jump to content

Gaining access to a folder


symband

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]

Link to comment
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. :?

Link to comment
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]

Link to comment
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).

Link to comment
Share on other sites

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.