Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Think about Loose Coupling
 
PerlMonks  

mod_perl module to redirect http to https prior to login

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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 17: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 17: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.