Apache[edit]

Build it yourself[edit]

Download[edit]

Compile[edit]

Configuration[edit]

Benchmark[edit]

Distributions[edit]

Rocky Linux[edit]

Install[edit]
dnf -y install httpd
/etc/httpd/conf/httpd.conf[edit]
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[edit]
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
firewalld[edit]
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
firewall-cmd --reload

or

systemctrl stop firewalld
systemctrl enable firewalld
 
 

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2025-12-16 (火) 11:18:35