====== DokuWikiインストール ======
本家の[[https://www.dokuwiki.org/ja:install|インストール手順]]に従ってインストールする。
===== Apacheの設定 =====
ServerName domain1.jp
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/domain1.jp
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =domain1.jp
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ServerName domain1.jp
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/domain1.jp
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/domain1.jp-0001/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain1.jp-0001/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
バーチャルドメインの有効化
$ sudo a2ensite domain1.jp.conf
$ sudo a2ensite domain1.jp-le-ssl.conf