User Tools

Site Tools


vps:vps4th2nd_05

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
vps:vps4th2nd_05 [2019/06/23 21:39]
hoge@hoge
vps:vps4th2nd_05 [2019/06/24 22:46]
hoge@hoge [DokuWiki]
Line 76: Line 76:
  
 ===== Let's Encrypt設定 ===== ===== Let's Encrypt設定 =====
-[[https://letsencrypt.jp/​|Let'​s Encrypt 総合ポータル]]を参考に設定を行う。+[[https://free-ssl.jp/​|Let'​s Encrypt 総合ポータル]]を参考に設定を行う。
  
   * 事前に apache を停止(起動済みの場合)<​code>​   * 事前に apache を停止(起動済みの場合)<​code>​
Line 190: Line 190:
              ​dwongrade-1.0 force-response-1.0              ​dwongrade-1.0 force-response-1.0
                            
-    <​IfModule alias_module>​ 
-         # Aliasとして、/​c-boardへのアクセスを/​usr/​local/​www/​c-boardへマップ 
-         Alias /c-board /​usr/​local/​www/​c-board 
-    </​IfModule>​ 
-    ​ 
     <​Directory />     <​Directory />
          ​Options FollowSymLinks ExecCGI          ​Options FollowSymLinks ExecCGI
Line 203: Line 198:
     </​Directory>​     </​Directory>​
  
-    <​Directory "/​usr/​local/​www/​c-board">​ 
-         ​Options FollowSymLinks ExecCGI 
-         ​AllowOverride all 
-         Order allow,deny 
-         Allow from all 
-          
-         ​AuthType Digest 
-         ​AuthName HOGE 
-         ​AuthDigestDomain /​usr/​local/​www/​c-board 
-         ​AuthDigestProvider file 
-         ​AuthUserFile /​usr/​local/​etc/​apache24/​.htdigest 
-         ​Require valid-user 
-    </​Directory>​ 
-    ​ 
 CustomLog "/​var/​log/​httpd-ssl_request.log"​ \ CustomLog "/​var/​log/​httpd-ssl_request.log"​ \
           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"​%r\"​ %b"           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"​%r\"​ %b"
Line 222: Line 203:
 </​code>​ </​code>​
  
-==== Digest認証設定 ==== 
-  * .htdigestを作成する。<​code>​ 
-# cd /​usr/​local/​etc/​apache24 
-# htdigest -c .htdigest '​AuthNmaeで設定した値'​ 認証するユーザ名 
-</​code>​ 
  
 ==== コンフィグ確認 ==== ==== コンフィグ確認 ====
Line 247: Line 223:
   * タイムゾーン設定のため、conf/​conf/​local.protected.php を新規作成<​code>​   * タイムゾーン設定のため、conf/​conf/​local.protected.php を新規作成<​code>​
 <?php <?php
-date_default_timezone_set("​Asia/Tokyo");+date_default_timezone_set("​JST");
 </​code>​ </​code>​
  
  
vps/vps4th2nd_05.txt · Last modified: 2019/06/24 22:55 by hoge@hoge