Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

239
Views
mod_auth_form apache error when restart apache2

I am trying to protect a folder in my directory under name admin and login from html form page. At my apache server I have edited the default-ssl.conf with following:

  <Directory "/var/www/admin">
    AuthFormProvider file
    ErrorDocument 401 "/login.shtml"
    AuthUserFile "/var/www/.htpasswd"
    AuthType form
    AuthName realm
    AuthFormLoginRequiredLocation "https://myserver.com/login.html"
    Session On
    SessionCookieName session path=/
  </Directory>

My passwords file is .htpasswd and my loginpage is http://myserver.com/login.html.

When I restart my apache I have following error:

AH00526: Syntax error on line 16 of /etc/apache2/sites-enabled/default-ssl.conf: Invalid command 'AuthFormProvider', perhaps misspelled or defined by a module not included in the server configuration Action 'start' failed.

Any solution for this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The modules you'll need for this are:

a2enmod session
a2enmod session_cookie
a2enmod session_crypto
a2enmod auth_form
a2enmod request
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!