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
https://forums.phpfreaks.com/topic/20-gaining-access-to-a-folder/
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
https://forums.phpfreaks.com/topic/20-gaining-access-to-a-folder/#findComment-50
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
https://forums.phpfreaks.com/topic/20-gaining-access-to-a-folder/#findComment-52
Share on other sites

Archived

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

×
×
  • 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.