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

質問編集履歴

4

不要なコード削除。

2018/03/17 16:53

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -53,56 +53,4 @@
53
53
  ```
54
54
  # cd /var/log/nginx/access.log
55
55
  bash: cd: /var/log/nginx/access.log: Not a directory
56
- ```
57
-
58
- default.conf
59
- ```
60
- server {
61
- listen 80;
62
- server_name localhost;
63
-
64
- #charset koi8-r;
65
- #access_log /var/log/nginx/host.access.log main;
66
-
67
- #location / {
68
- # root /usr/share/nginx/html;
69
- # index index.html index.htm;
70
- #}
71
-
72
- location / {
73
- proxy_pass https://202.234.29.136/;
74
- }
75
-
76
- #error_page 404 /404.html;
77
-
78
- # redirect server error pages to the static page /50x.html
79
- #
80
- error_page 500 502 503 504 /50x.html;
81
- location = /50x.html {
82
- root /usr/share/nginx/html;
83
- }
84
-
85
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
86
- #
87
- #location ~ .php$ {
88
- # proxy_pass http://127.0.0.1;
89
- #}
90
-
91
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
92
- #
93
- #location ~ .php$ {
94
- # root html;
95
- # fastcgi_pass 127.0.0.1:9000;
96
- # fastcgi_index index.php;
97
- # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
98
- # include fastcgi_params;
99
- #}
100
-
101
- # deny access to .htaccess files, if Apache's document root
102
- # concurs with nginx's one
103
- #
104
- #location ~ /.ht {
105
- # deny all;
106
- #}
107
- }
108
56
  ```

3

修正

2018/03/17 16:53

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,6 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
- nginxのコンテナでリバースプロキシ設定して、ちゃんと飛んでいるんですが、
3
+ nginxのコンテナでリバースプロキシ設定して、反映されているのを確認していますが、
4
4
  nginxのコンテナのaccess.log見てみると、何も出力されていません。
5
5
  また、access.logはファイルではないというような表示もされます。
6
6
  ご教示のほどお願いいたします。

2

追記

2018/03/08 11:08

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -53,4 +53,56 @@
53
53
  ```
54
54
  # cd /var/log/nginx/access.log
55
55
  bash: cd: /var/log/nginx/access.log: Not a directory
56
+ ```
57
+
58
+ default.conf
59
+ ```
60
+ server {
61
+ listen 80;
62
+ server_name localhost;
63
+
64
+ #charset koi8-r;
65
+ #access_log /var/log/nginx/host.access.log main;
66
+
67
+ #location / {
68
+ # root /usr/share/nginx/html;
69
+ # index index.html index.htm;
70
+ #}
71
+
72
+ location / {
73
+ proxy_pass https://202.234.29.136/;
74
+ }
75
+
76
+ #error_page 404 /404.html;
77
+
78
+ # redirect server error pages to the static page /50x.html
79
+ #
80
+ error_page 500 502 503 504 /50x.html;
81
+ location = /50x.html {
82
+ root /usr/share/nginx/html;
83
+ }
84
+
85
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
86
+ #
87
+ #location ~ .php$ {
88
+ # proxy_pass http://127.0.0.1;
89
+ #}
90
+
91
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
92
+ #
93
+ #location ~ .php$ {
94
+ # root html;
95
+ # fastcgi_pass 127.0.0.1:9000;
96
+ # fastcgi_index index.php;
97
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
98
+ # include fastcgi_params;
99
+ #}
100
+
101
+ # deny access to .htaccess files, if Apache's document root
102
+ # concurs with nginx's one
103
+ #
104
+ #location ~ /.ht {
105
+ # deny all;
106
+ #}
107
+ }
56
108
  ```

1

タイトル修正

2018/03/07 14:06

投稿

退会済みユーザー
title CHANGED
@@ -1,1 +1,1 @@
1
- アクセスログが出力されない。
1
+ nginxでアクセスログが出力されない。
body CHANGED
File without changes