VTSV
02-12-2007, 12:55 PM
Hey y'all,
I've searched far and wide for a solution to this but can't quite find one, and I've tried different things myself but to no avail.
I currently have all my music available via HTTP, using basic authentication so not just anyone can get it.
What I'm looking to do is remove the need for authentication for the music files themselves, but not the autoindexes. So, for example, if I were to send my friend a link to a song, they wouldn't have to enter a username or password, but at the same time, if they tried to access the directory it was in, they would.
Right now, when I go to /music/ I get a 401 without even being asked for a username/password
If I go to /music/index.html I get promted, then 404'd because there is no file with that name
I can then access /music/ and its subfolders. Music files I can access fine without authentication (thanks!)
Any way I can skip that extra step and be authenticated on /music/ ?
DirectoryIndex index.html index.php
<Directory "music">
Options +Indexes
IndexOptions FancyIndexing FoldersFirst IconsAreLinks NameWidth=* SuppressDescription SuppressLastModified
<Files index.html>
AuthType Basic
AuthName "Music"
AuthUserFile "xxx"
Require user xxx
</Files>
</Directory>
An alternative would be to have basic authentication enabled for /music/ and its subdirectories but to have it disabled for .wma files.
Thanks in advance for any help!
~Steve
I've searched far and wide for a solution to this but can't quite find one, and I've tried different things myself but to no avail.
I currently have all my music available via HTTP, using basic authentication so not just anyone can get it.
What I'm looking to do is remove the need for authentication for the music files themselves, but not the autoindexes. So, for example, if I were to send my friend a link to a song, they wouldn't have to enter a username or password, but at the same time, if they tried to access the directory it was in, they would.
Right now, when I go to /music/ I get a 401 without even being asked for a username/password
If I go to /music/index.html I get promted, then 404'd because there is no file with that name
I can then access /music/ and its subfolders. Music files I can access fine without authentication (thanks!)
Any way I can skip that extra step and be authenticated on /music/ ?
DirectoryIndex index.html index.php
<Directory "music">
Options +Indexes
IndexOptions FancyIndexing FoldersFirst IconsAreLinks NameWidth=* SuppressDescription SuppressLastModified
<Files index.html>
AuthType Basic
AuthName "Music"
AuthUserFile "xxx"
Require user xxx
</Files>
</Directory>
An alternative would be to have basic authentication enabled for /music/ and its subdirectories but to have it disabled for .wma files.
Thanks in advance for any help!
~Steve