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