質問するログイン新規登録

質問編集履歴

1

設定ファイル

2018/10/25 08:55

投稿

yuki_90453
yuki_90453

スコア326

title CHANGED
File without changes
body CHANGED
@@ -20,4 +20,93 @@
20
20
  ```
21
21
 
22
22
  403エラーは権限による物だと聞いていますが、権限を確認しても755になっていますので問題ないかと思います。
23
- 他に怪しい部分や確認すべき点などアドバイスお願い致します。
23
+ 他に怪しい部分や確認すべき点などアドバイスお願い致します。
24
+
25
+ ###追記
26
+ ```ここに言語を入力
27
+ user www-data;
28
+ worker_processes auto;
29
+ pid /run/nginx.pid;
30
+
31
+ events {
32
+ worker_connections 768;
33
+ # multi_accept on;
34
+ }
35
+
36
+ http {
37
+
38
+ ##
39
+ # Basic Settings
40
+ ##
41
+
42
+ sendfile on;
43
+ tcp_nopush on;
44
+ tcp_nodelay on;
45
+ keepalive_timeout 65;
46
+ types_hash_max_size 2048;
47
+ # server_tokens off;
48
+
49
+ # server_names_hash_bucket_size 64;
50
+ # server_name_in_redirect off;
51
+
52
+ include /etc/nginx/mime.types;
53
+ default_type application/octet-stream;
54
+
55
+ ##
56
+ # SSL Settings
57
+ ##
58
+
59
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
60
+ ssl_prefer_server_ciphers on;
61
+
62
+ ##
63
+ # Logging Settings
64
+ ##
65
+
66
+ access_log /var/log/nginx/access.log;
67
+ error_log /var/log/nginx/error.log;
68
+
69
+ ##
70
+ # Gzip Settings
71
+ ##
72
+
73
+ gzip on;
74
+ gzip_disable "msie6";
75
+
76
+ # gzip_vary on;
77
+ # gzip_proxied any;
78
+ # gzip_comp_level 6;
79
+ # gzip_buffers 16 8k;
80
+ # gzip_http_version 1.1;
81
+ # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
82
+
83
+ ##
84
+ # Virtual Host Configs
85
+ ##
86
+
87
+ include /etc/nginx/conf.d/*.conf;
88
+ include /etc/nginx/sites-enabled/*;
89
+ }
90
+
91
+
92
+ #mail {
93
+ # # See sample authentication script at:
94
+ # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
95
+ #
96
+ # # auth_http localhost/auth.php;
97
+ # # pop3_capabilities "TOP" "USER";
98
+ # # imap_capabilities "IMAP4rev1" "UIDPLUS";
99
+ #
100
+ # server {
101
+ # listen localhost:110;
102
+ # protocol pop3;
103
+ # proxy on;
104
+ # }
105
+ #
106
+ # server {
107
+ # listen localhost:143;
108
+ # protocol imap;
109
+ # proxy on;
110
+ # }
111
+ #}
112
+ ```