LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2004, 10:20 AM   #1
uk webs
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
.htaccess and mp3


Hi,

Please could someone help me. I am trying to set up a website for bands to upload .mp3 samples of their music. I want this to be protected using .htaccess and then give usernames/passwords to users who need it allowing them to listen to this audio. The audio is uploaded using php upload script.. which works well. There is then another php page to play the music after users log in..

So, I have created a .htaccess file and associated password files. I created a directory called audio and set CHMOD to 777 on the audio directory and put the .htaccesss file in this directory.

I can upload the .mp3 files fine.

The 'play' page is in another directory call 'members' which is set to 711 and is protected by another .htaccess file.

I have a button in the play site which links to the .mp3 file in the audio directory.

So when I go to the 'play' site.. I have to log in.. which works and lets me access the site. I can click the play button to play the audio, which opens windows media player...

Now here is my problem...

When media player opens another popup window opens asks me enter a network password. If I put in the same username and password, as I use in the 'play' site, and audio directory, the audio plays, but I want to play the mp3 file without re-entering the username and password.. Is there anyway of stopping this network login box? Why doesn't it just authenticate from the original .htaccess login??

With Thanks
 
Old 10-26-2004, 11:09 AM   #2
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
In the .htaccess what do you have the 'realm' set to. Try setting them to the same thing, that might resolve the problem.

You are putting the password files outside the DocumentRoot(s) for Apache, aren't you?
 
Old 10-26-2004, 12:24 PM   #3
uk webs
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thats the AuthName - am I right? If so they are all set to the same.
The pw file is outside the Apache, thanks
 
Old 10-26-2004, 03:00 PM   #4
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
My other thought on this was it might have something to do with the structure of things. If you made the directory with the mp3's a subdirectory of where the page is that lists the mp3's (and removed the .htaccess file from the mp3 directory) then this will probably go away.

I'm pretty sure it has to do with the structure of things, unless you already have the mp3 content directory as a subdirectory. If so, then I'm stumped and would have to do some investigation.
 
Old 10-26-2004, 06:20 PM   #5
uk webs
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks. At the moment the mp3 directory isn't a sub directory, I will give it a go and move the directory under the play site directory
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ripping cds to mp3 (or wav to mp3) darkleaf Linux - Software 7 04-30-2005 08:23 AM
.htaccess Lionheart008 Linux - Newbie 1 10-15-2004 03:15 PM
mount mp3 player to /mnt/mp3? Muzzy Linux - General 4 05-09-2004 06:31 AM
MP3 CD player can't read MP3 CD's burned in linux food188 Linux - Software 2 01-11-2004 05:55 PM
Htaccess DoobyWho Linux - General 4 04-28-2003 02:01 PM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration