soiz1 commited on
Commit
37b04a8
·
verified ·
1 Parent(s): 41a29c7

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +20 -0
nginx.conf ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 80;
3
+ listen [::]:80;
4
+ server_name localhost;
5
+
6
+ # エラーログの設定
7
+ error_log /var/log/nginx/error.log warn;
8
+
9
+ location / {
10
+ # ドキュメントルートの指定
11
+ root /usr/share/nginx/html;
12
+ index index.html index.htm;
13
+
14
+ # 必要に応じてアクセス権の調整(自動インデックス表示を有効化)
15
+ autoindex on;
16
+ }
17
+
18
+ # 404エラーを200で返す設定
19
+ error_page 404 =200 /index.html;
20
+ }