Apache
をテンプレートにして作成
[
トップ
] [
タイトル一覧
|
ページ一覧
|
新規
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* 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...
- [[2.4.x>./Install-2.4]]
*** Configuration [#re0bf3c6]
- [[2.2.x の設定>http://www.netp.tuis.ac.jp/moodle21/cour...
- [[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 -no...
-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
終了行:
* 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...
- [[2.4.x>./Install-2.4]]
*** Configuration [#re0bf3c6]
- [[2.2.x の設定>http://www.netp.tuis.ac.jp/moodle21/cour...
- [[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 -no...
-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
ページ名: