symband Posted January 7, 2003 Share Posted January 7, 2003 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] Quote Link to comment Share on other sites More sharing options...
dakkon10 Posted January 7, 2003 Share Posted January 7, 2003 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. :? Quote Link to comment Share on other sites More sharing options...
effigy Posted January 7, 2003 Share Posted January 7, 2003 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. Quote Link to comment Share on other sites More sharing options...
pallevillesen Posted January 7, 2003 Share Posted January 7, 2003 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] Quote Link to comment Share on other sites More sharing options...
symband Posted January 7, 2003 Author Share Posted January 7, 2003 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). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.