Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

mod_perl module to redirect http to https prior to login

by jjhorner (Hermit)
on Sep 06, 2001 at 20:42 UTC ( [id://110629]=perlquestion: print w/replies, xml ) Need Help??

jjhorner has asked for the wisdom of the Perl Monks concerning the following question:

Hopefully, someone will know this.

Before I start hacking on my own, I need to see if there is a mod_perl module out there that will step in at the Authentication phase of the request loop, and redirect the user to the requested page via https method, instead of http method. This, hopefully, could prevent clear text passwords from being passed on the network without adding a lot of additional logins for the site.

Thanks,

J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org/
  • Comment on mod_perl module to redirect http to https prior to login

Replies are listed 'Best First'.
Re: mod_perl module to redirect http to https prior to login
by nardo (Friar) on Sep 06, 2001 at 21:21 UTC
    You could use mod_rewrite to forward someone to an https page if they are using http. Something along the lines of:
    RewriteEngine On RewriteCond %{HTTPS} ^$ RewriteRule (.*) https://domain.com/directory/$1 [L]
Re: mod_perl module to redirect http to https prior to login
by LD2 (Curate) on Sep 06, 2001 at 21:36 UTC
    You may be interested in this thread here - there are alternatives. Also, check out Google for other suggestions.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://110629]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-16 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found