Error
------
Re: Forbidden You don't have permission to access / on this server.
$ sestatus
SELinux status: disabled
chmod -R 755 /var/www/html
/etc/init.d/httpd restart
wget http://127.0.0.1
To change a file to be owned by apache:
chown apache.apache index.html
<Directory "/var/www/html">
Order allow,deny
Allow from all
</Directory>
-----------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ServerName server_domain_name_or_IP
<Directory /var/www/html/>
AllowOverride All
</Directory>
systemctl restart httpd
SSL Library Error: -8181 Certificate has expired
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [error] SSL Library Error: -8181 Certificate has expired [error] Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved.
# vim /etc/httpd/conf/httpd.conf
NSSEnforceValidCerts off # add text
# certutil -L -d /etc/httpd/alias -n Server-Cert
# service nscd restart
# service httpd restart
OR
rpm -e mod_nss OR yum remove mod_nss
rm /etc/httpd/alias/*
yum install mod_nss OR dnf remove mod_nss
service httpd restart OR systemctl restart httpd
dnf remove mod_nss
rm /etc/httpd/alias/*
dnf install mod_nss
systemctl restart httpd
ERROR
mail.abc.com httpd[5132]: [Thu Oct 14 16:58:42.752797 2021] [alias:warn] [pid 5132] AH00671: The Alias directive in /etc/httpd/conf/httpd.conf at line 355 will probably never match because it overlaps an earlier Alias.
rpm -e mod_nssrm /etc/httpd/alias/*yum install mod_nssservice httpd restart
ERROR
Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved.
yum install httpd mod_nsscertutil -d /etc/httpd/alias -L -n Server-Certcd /etc/httpd/aliasrm -f *.db/usr/sbin/gencert /etc/httpd/alias > /etc/httpd/alias/install.log 2>&1
Then modify the attributes of all DB files in the/etc/httpd/alias/Directory:
chown :apache /etc/httpd/alias/*.db chmod u=rw,g=r *.dbThe effect is the same with the following two commands:
chown root.apache /etc/httpd/alias/*.dbchmod 0640 /etc/httpd/alias/*.db
systemctl restart httpd
---------------------------- OR-------------------------------
dnf remove mod_nss
rm /etc/httpd/alias/*
dnf install mod_nss
systemctl restart httpd
ll
------