From 96c9666a89674f371cb57bbd6a375e8ec4a2f555 Mon Sep 17 00:00:00 2001 From: Vasco Date: Tue, 28 Apr 2026 16:11:26 +0100 Subject: [PATCH] praying --- conf/httpd-totp | 4 ++-- conf/httpd.conf | 22 ++++++++++++++++++++-- conf/openssl.cnf | 0 3 files changed, 22 insertions(+), 4 deletions(-) delete mode 100644 conf/openssl.cnf diff --git a/conf/httpd-totp b/conf/httpd-totp index 26e24ae..f666df3 100644 --- a/conf/httpd-totp +++ b/conf/httpd-totp @@ -1,3 +1,3 @@ -auth required pam_google_authenticator.so forward_pass secret=/etc/httpd/totp/${USER} user=apache +auth required pam_google_authenticator.so forward_pass secret=/home/${USER}/.google_authenticator user=apache auth required pam_unix.so use_first_pass -account required pam_unix.so +account required pam_unix.so \ No newline at end of file diff --git a/conf/httpd.conf b/conf/httpd.conf index fabd3c0..3fed509 100644 --- a/conf/httpd.conf +++ b/conf/httpd.conf @@ -1,2 +1,20 @@ -LoadModule authnz_pam_module modules/mod_authnz_pam.so -LoadModule mpm_event_module modules/mod_mpm_event.so \ No newline at end of file +ServerRoot "/etc/httpd" + +Include conf.modules.d/*.conf +LoadModule authnz_pam_module modules/mod_authnz_pam.so +LoadModule mpm_event_module modules/mod_mpm_event.so + +User apache +Group apache + +Listen 80 # para o redirect +Listen 443 + +Include conf.d/*.conf + +DocumentRoot "/var/www/html" + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + \ No newline at end of file diff --git a/conf/openssl.cnf b/conf/openssl.cnf deleted file mode 100644 index e69de29..0000000