#author("2025-12-15T07:20:49+00:00","default:iseki","iseki") #author("2025-12-16T02:18:35+00:00","default:iseki","iseki") * Apache [#y9da78a7] ** Build it yourself *** Download [#e6e00581] - Apache: http://httpd.apache.org/ *** Compile [#me6fa4c1] - [[2.2.x:http://www.netp.tuis.ac.jp/moodle21/course/view.php?id=7&page=Apache2.2]] - [[2.4.x>./Install-2.4]] *** Configuration [#re0bf3c6] - [[2.2.x の設定>http://www.netp.tuis.ac.jp/moodle21/course/view.php?id=7&page=Apache2.2]] - [[2.4.x の設定>./Configuration-2.4]] *** Benchmark [#l87b1c8d] - [[ab]] ** Distributions *** Rocky Linux **** Install dnf -y install httpd **** /etc/httpd/conf/httpd.conf ServerAdmin fumihax@star-dust.jp ServerName www.example.com:80 DocumentRoot "/var/www/htdocs" <Directory "/var/www/htdocs"> Options FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> **** SSL - オレオレ証明書 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" - ssl.conf 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 **** firewalld firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --reload or systemctrl stop firewalld systemctrl enable firewalld #br #br