Re: Rewrite Rules, SSL, and .htaccess

From: Peter H. Lemieux (phl_at_cyways.com)
Date: 03/25/04

  • Next message: Jeremy Miller: "Re: Rewrite Rules, SSL, and .htaccess"
    Date: Thu, 25 Mar 2004 15:36:38 -0500
    To: davec <davec@webpipe.net>
    
    

    Slight oops in my earlier message. The <Directory> tag should, of course,
    reference the directory on the filesystem. So it should be something like

    <Directory "/var/www/html">
    auth stuff
    </Directory>

    Sorry for any confusion.

    Peter

    > Try moving the authentication stuff out of .htaccess and place it in
    > <Directory> tags inside httpd.conf instead:
    >
    > <VirtualHost 192.168.3.7:80>
    > Redirect / https://www.mydomain.com/
    > </VirtualHost>
    >
    > <VirtualHost 192.168.3.7:443>
    > <Directory />
    > AuthType Basic
    > require valid-user
    > etc.
    > </Directory>
    > </VirtualHost>
    >
    > Peter
    >
    > davec wrote:
    >
    >> Hi,
    >> I have a .htaccess file protecting a certain directory on my site. When
    >> I tried using the following Apache redirect, I was prompted for my
    >> password once on the http version, and once on the https version:
    >> <VirtualHost 192.168.3.7:80>
    >> Redirect / https://www.mydomain.com/
    >> </VirtualHost>
    >> The point of using SSL on the password protected directory is to protect
    >> the password from being passed in clear text. I think that a RewriteRule
    >> would probably do the trick, but after reading the apache documentation
    >> (version 2.0.40) I have still not been able to set one up that works
    >> properly for the various ways of accessing the site such as
    >> http://www.mydomain.com/dir or www.mydomain.com/dir or mydomain.com/dir
    >> or http://www.mydomain.com/dir/index.html etc.
    >> Any suggestions?
    >> Thanks,
    >> Dave
    >


  • Next message: Jeremy Miller: "Re: Rewrite Rules, SSL, and .htaccess"

    Relevant Pages

    • Re: Prevent / Disable Worksheet Copy or Move
      ... so I would prefer to avoid protecting the workbook. ... Tom Ogilvy wrote: ... > Tools, Protection, Protect Workbook, select at least structure. ... >> Peter Noneley ...
      (microsoft.public.excel.programming)
    • Rewrite Rules, SSL, and .htaccess
      ... I have a .htaccess file protecting a certain directory on my site. ... tried using the following Apache redirect, I was prompted for my password ... once on the http version, and once on the https version: ...
      (Focus-Linux)