Apache - No pide autentificacion - virtual Host - Mysql

 
Vista:
sin imagen de perfil
Val: 1
Ha disminuido su posición en 22 puestos en Apache (en relación al último mes)
Gráfica de Apache

No pide autentificacion - virtual Host - Mysql

Publicado por Sorienrot (1 intervención) el 08/06/2020 16:56:45
Buenas tardes,

Alguien podria indicarme donde estoy cometiendo el fallo, la pagina en principio deberia pedir usuario y contraseña, pero se puede acceder a ella sin problemas.

Version apache:

Server version: Apache/2.4.29 (Ubuntu)
Server built: 2020-03-13T12:26:16

Version Ubuntu:

Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<VirtualHost *:80>
        ServerName adictosrp.sorienrot.es
 
        DocumentRoot /var/www/adictosrp
RewriteEngine on
RewriteCond %{SERVER_NAME} =adictosrp.sorienrot.es
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
 
# mod_dbd configuration
DBDriver mysql
DBDParams "dbname=xxxx user=xxx pass=xxxx"
 
DBDMin 4
DBDKeep 8
DBDMax 20
DBDExptime 300
 
<Directory "/var/www/adictosrp/badu/">
	 # mod_authn_core and mod_auth_basic configuration
	 # for mod_authn_dbd
	 AuthType Basic
	 AuthName "Badu System"
 
	 # To cache credentials, put socache ahead of dbd here
	 AuthBasicProvider socache dbd
 
	 # Also required for caching: tell the cache to cache dbd lookups!
	 AuthnCacheProvideFor dbd
	 AuthnCacheContext my-server
 
	 # mod_authz_core configuration
	 Require valid-user
 
	 # mod_authn_dbd SQL query to authenticate a user
	 AuthDBDUserPWQuery "SELECT pass FROM mysql_auth WHERE empleado = %s"
</Directory>
 
</VirtualHost>

Para crear esto he seguido este tutorial

https://www.howtoforge.com/tutorial/password-protect-directories-with-mod_authn_dbd-mysql-on-apache-debian-jessie/


Pagina final : https://adictosrp.sorienrot.es/badu/
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder