dnf -y install httpd
ServerAdmin DocumentRoot "/var/www/htdocs" <Directory "/var/www/htdocs"> Options FollowSymLinks MultiViews AllowOverride All
openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -nodes \ -keyout /etc/pki/tls/private/jh_test.key \ -out /etc/pki/tls/certs/jh_test.crt \ -subj "/CN=localhost"
DocumentRoot "/var/www/htdocs_ssl"
ServerName polaris.star-dust.jp:443
<Directory "/var/www/htdocs_ssl">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
SSLCertificateFile /etc/pki/tls/certs/jh_test.crt SSLCertificateKeyFile /etc/pki/tls/private/jh_test.key
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --reload
or
systemctrl stop firewalld systemctrl enable firewalld