From cffbdcb13df13d597559c57f340ec9e1b8fe044d Mon Sep 17 00:00:00 2001 From: Milan Toman Date: Wed, 21 Feb 2024 09:08:45 +0100 Subject: [PATCH] mysql pass mismatch --- config/nginx.d/nginx.conf | 5 +++++ www/lib/mysql_connect.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/nginx.d/nginx.conf b/config/nginx.d/nginx.conf index d3bf6ce..db96ab6 100755 --- a/config/nginx.d/nginx.conf +++ b/config/nginx.d/nginx.conf @@ -7,6 +7,11 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } + location /admin { + auth_basic "Administrator’s Area"; + auth_basic conf/htpasswd; + + } } #server { # listen 82 default_server; diff --git a/www/lib/mysql_connect.php b/www/lib/mysql_connect.php index bf4e7e1..f6b64e3 100644 --- a/www/lib/mysql_connect.php +++ b/www/lib/mysql_connect.php @@ -2,7 +2,7 @@ //phpinfo(); $servername = "db"; $username = 'kalskeborec'; -$password = 'Kalskeborec1!23$'; +$password = 'kalskeborec!#@$$'; // Create connection $conn = new mysqli($servername, $username, $password); @@ -11,7 +11,7 @@ $conn = new mysqli($servername, $username, $password); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } -echo "Connected successfully"; +//echo "Connected successfully"; ?>