質問編集履歴

4

不要なコード削除。

2018/03/17 16:53

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -109,107 +109,3 @@
109
109
  bash: cd: /var/log/nginx/access.log: Not a directory
110
110
 
111
111
  ```
112
-
113
-
114
-
115
- default.conf
116
-
117
- ```
118
-
119
- server {
120
-
121
- listen 80;
122
-
123
- server_name localhost;
124
-
125
-
126
-
127
- #charset koi8-r;
128
-
129
- #access_log /var/log/nginx/host.access.log main;
130
-
131
-
132
-
133
- #location / {
134
-
135
- # root /usr/share/nginx/html;
136
-
137
- # index index.html index.htm;
138
-
139
- #}
140
-
141
-
142
-
143
- location / {
144
-
145
- proxy_pass https://202.234.29.136/;
146
-
147
- }
148
-
149
-
150
-
151
- #error_page 404 /404.html;
152
-
153
-
154
-
155
- # redirect server error pages to the static page /50x.html
156
-
157
- #
158
-
159
- error_page 500 502 503 504 /50x.html;
160
-
161
- location = /50x.html {
162
-
163
- root /usr/share/nginx/html;
164
-
165
- }
166
-
167
-
168
-
169
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
170
-
171
- #
172
-
173
- #location ~ .php$ {
174
-
175
- # proxy_pass http://127.0.0.1;
176
-
177
- #}
178
-
179
-
180
-
181
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
182
-
183
- #
184
-
185
- #location ~ .php$ {
186
-
187
- # root html;
188
-
189
- # fastcgi_pass 127.0.0.1:9000;
190
-
191
- # fastcgi_index index.php;
192
-
193
- # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
194
-
195
- # include fastcgi_params;
196
-
197
- #}
198
-
199
-
200
-
201
- # deny access to .htaccess files, if Apache's document root
202
-
203
- # concurs with nginx's one
204
-
205
- #
206
-
207
- #location ~ /.ht {
208
-
209
- # deny all;
210
-
211
- #}
212
-
213
- }
214
-
215
- ```

3

修正

2018/03/17 16:53

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- nginxのコンテナでリバースプロキシ設定して、ちゃんと飛んでいるんですが、
5
+ nginxのコンテナでリバースプロキシ設定して、反映されているのを確認していますが、
6
6
 
7
7
  nginxのコンテナのaccess.log見てみると、何も出力されていません。
8
8
 

2

追記

2018/03/08 11:08

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -109,3 +109,107 @@
109
109
  bash: cd: /var/log/nginx/access.log: Not a directory
110
110
 
111
111
  ```
112
+
113
+
114
+
115
+ default.conf
116
+
117
+ ```
118
+
119
+ server {
120
+
121
+ listen 80;
122
+
123
+ server_name localhost;
124
+
125
+
126
+
127
+ #charset koi8-r;
128
+
129
+ #access_log /var/log/nginx/host.access.log main;
130
+
131
+
132
+
133
+ #location / {
134
+
135
+ # root /usr/share/nginx/html;
136
+
137
+ # index index.html index.htm;
138
+
139
+ #}
140
+
141
+
142
+
143
+ location / {
144
+
145
+ proxy_pass https://202.234.29.136/;
146
+
147
+ }
148
+
149
+
150
+
151
+ #error_page 404 /404.html;
152
+
153
+
154
+
155
+ # redirect server error pages to the static page /50x.html
156
+
157
+ #
158
+
159
+ error_page 500 502 503 504 /50x.html;
160
+
161
+ location = /50x.html {
162
+
163
+ root /usr/share/nginx/html;
164
+
165
+ }
166
+
167
+
168
+
169
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
170
+
171
+ #
172
+
173
+ #location ~ .php$ {
174
+
175
+ # proxy_pass http://127.0.0.1;
176
+
177
+ #}
178
+
179
+
180
+
181
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
182
+
183
+ #
184
+
185
+ #location ~ .php$ {
186
+
187
+ # root html;
188
+
189
+ # fastcgi_pass 127.0.0.1:9000;
190
+
191
+ # fastcgi_index index.php;
192
+
193
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
194
+
195
+ # include fastcgi_params;
196
+
197
+ #}
198
+
199
+
200
+
201
+ # deny access to .htaccess files, if Apache's document root
202
+
203
+ # concurs with nginx's one
204
+
205
+ #
206
+
207
+ #location ~ /.ht {
208
+
209
+ # deny all;
210
+
211
+ #}
212
+
213
+ }
214
+
215
+ ```

1

タイトル修正

2018/03/07 14:06

投稿

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