LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-25-2005, 07:41 PM   #1
WopMaster8
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 10.1
Posts: 7

Rep: Reputation: 0
Apache2 internal redirect?


Basically what I'm trying to do is use Apache::MP3 to host my music and only allow myself and selected other people to use it. Apache::MP3 streams don't work under ssl encryption so I'm trying to figure out a workaround. Is it possible to redirect internally without using an external URL address? For example, say I have www.mysite.com. www.mysite.com goes to my IP which is port forwarded to my server which uses address 192.168.2.4 port 2525. This port uses ssl so the index.html redirects to /somedirectory/auth.html where somedirectory requires a login. I set it up this way instead of having the main directory require a login because it appears that the ssl encryption doesn't kick in before the login, which I couldn't understand. Anyhow, after a valid user/pass is entered I would like to redirect to 192.168.2.4 port 2526. However 192.* is local so the redirect doesn't work. Is there a way I can either redirect to a different port or fetch the information I want and not have it be under SSL? Sorry if I'm vague or didn't include enough information, I'm pretty familiar with Linux but I'm just learning about the Apache server and SSL and what not.
 
Old 03-26-2005, 12:06 PM   #2
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
I'm not sure if this will help, but you do not need SSL to require a password. Take a read through this quick doc
http://httpd.apache.org/docs-2.0/howto/auth.html

I imagine if you add a <directory> directive for your mp3 hierarchy, you can password protect that... I've never tried it so that's just a theory.
Good luck.
J.
 
Old 03-28-2005, 01:25 AM   #3
WopMaster8
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
I'm using SSL to encrypt the password. I don't want it going over the web in plain text. The process looks like this:

Browse to non-SSL port index.html
Redirect to SSL port index.html
Redirect to Auth directory auth.html
Auth directory is password protected (like what you suggested for the Music directory)
If User/Pass is valid redirect to Music directory on non-SSL port.

Currently I have the Music directory set up as Deny from all and I'm trying to use SetEnvIf Remote_User to allow access but it's not working.
 
  


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
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
Apache2 apache2-common WebDav timgerr Linux - Networking 1 08-25-2005 09:41 PM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM
Redirect traffic to internal IP? xmutex Linux - Networking 1 08-13-2001 10:29 AM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration