dokuwikiに関して
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
dokuwikiに関して [2019/05/05 07:04] – [Pukiwikiからの移行] araki | dokuwikiに関して [2019/05/24 09:03] – [PHP(php-fpm)の設定] araki | ||
---|---|---|---|
行 4: | 行 4: | ||
===== 設定 ===== | ===== 設定 ===== | ||
==== Nginx+php-fpm ==== | ==== Nginx+php-fpm ==== | ||
+ | |||
+ | PHPベースのシステムなので、例によって Nginx+php-fpmで運用する。 | ||
+ | SSLにはLet' | ||
+ | |||
+ | < | ||
+ | upstream wiki-handler { | ||
+ | server unix:/ | ||
+ | } | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name wiki.example.com; | ||
+ | return 301 https:// | ||
+ | } | ||
+ | |||
+ | server { | ||
+ | listen 443 ssl; | ||
+ | server_name wiki.example.com; | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | root / | ||
+ | access_log / | ||
+ | error_log / | ||
+ | index index.php index.html doku.php; | ||
+ | location / { | ||
+ | try_files $uri $uri/ @dokuwiki; | ||
+ | } | ||
+ | location ~ \.php$ { | ||
+ | try_files $uri $uri/ /doku.php; | ||
+ | fastcgi_index index.php; | ||
+ | fastcgi_split_path_info ^(.+\.php)(.*)$; | ||
+ | fastcgi_keep_conn on; | ||
+ | include / | ||
+ | fastcgi_pass wiki-handler; | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
+ | fastcgi_param PATH_INFO $uri; | ||
+ | fastcgi_param QUERY_STRING $query_string; | ||
+ | fastcgi_param REQUEST_METHOD $request_method; | ||
+ | fastcgi_param CONTENT_TYPE $content_type; | ||
+ | fastcgi_param CONTENT_LENGTH $content_length; | ||
+ | } | ||
+ | location @dokuwiki { | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/(.*) / | ||
+ | } | ||
+ | location ~ ^/ | ||
+ | expires 30d; | ||
+ | } | ||
+ | location ~ \.ht { | ||
+ | deny all; | ||
+ | } | ||
+ | location ~ / | ||
+ | deny all; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
==== PHP(php-fpm)の設定 ==== | ==== PHP(php-fpm)の設定 ==== | ||
行 12: | 行 69: | ||
例えば、VineLinuxのように '' | 例えば、VineLinuxのように '' | ||
- | '' | + | < |
+ | php_admin_value[default_charset] = UTF-8 | ||
+ | </ | ||
==== Pukiwikiからの移行 ==== | ==== Pukiwikiからの移行 ==== |
dokuwikiに関して.txt · 最終更新: 2020/11/25 09:56 by araki