Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

236
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda