Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:19:40+00:00 2026-06-09T19:19:40+00:00

Using Apache, I force HTTPS on a folder: SSLOptions +StrictRequire SSLRequireSSL SSLRequire %{HTTP_HOST} eq

  • 0

Using Apache, I force HTTPS on a folder:

SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "www.example.com"
ErrorDocument 403 https://www.example.com/admin/

and I protect the folder using Apache AuthBasic:

AuthType Basic
AuthName "Administration"
AuthUserFile /path/to/my/.htpasswd
Require valid-user
Satisfy all

Like this, the password is always sent over HTTPS. It works well, but then I tried to disable authentication for a single URL:

SetEnvIf Request_URI "crm/index\.php$" removeme_uri
Order deny,allow
Deny from all
Allow from env=removeme_uri
Satisfy any

This URL does not ask for authentication, and the others do. So all is well, but HTTPS is not required anymore, and the password can be sent in clear !

What am I doing wrong here ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:19:41+00:00Added an answer on June 9, 2026 at 7:19 pm

    Thanks to Jon’s answer, I could try different solutions. I found this question and applied the answer to my situation:

    In the main directory, the .htaccess contains

    SSLOptions +StrictRequire
    SSLRequireSSL
    SSLRequire %{HTTP_HOST} eq "www.example.com"
    ErrorDocument 403 https://www.example.com/admin/
    
    AuthType Basic
    AuthName "Administration"
    AuthUserFile /path/to/my/.htpasswd
    Require valid-user
    Satisfy all
    

    And in the crm subdirectory, the .htaccess has:

    <FilesMatch "index\.php">
        Allow from all
        Satisfy any
    </FilesMatch>
    

    It forces the SSL in any case, and allows the access to crm/index.php.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Weblogic 10.3.1.0 is using com.bea.core.apache.commons.net_1.0.0.0_1-4-1.jar... I want to use commons-net-2.0.jar from my code. How
Using Apache Commons VFS , how do I monitor the progress of a file
Using Apache POI to generate a document and i'm having a small problem with
Using Apache 2.2 and PHP 5, what's the best way to run PHP without
Using Apache Wicket 1.4: I have a panel that calls some setup Javascript in
I am using Apache Hadoop (hadoop-0.20.203.0) and unable to set sticky bit for /tmp
I'm using Apache Commons FTP to upload a file. Before uploading I want to
I am using apache tomcat as a web server. I have deployed webservices on
I am using Apache POI 3.8 libraries to read an XLSX file in a
I am using Apache Solr for one of my Drupal sites. I start my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.