Commit d54dd0a 1 parent 7084d6d commit d54dd0a Copy full SHA for d54dd0a
File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
pid /tmp/nginx/pid;
2
2
3
- error_log /dev/stdout warn;
3
+ error_log /dev/stderr warn;
4
4
5
5
worker_processes 1;
6
6
@@ -16,11 +16,9 @@ http {
16
16
open_file_cache_min_uses 2;
17
17
open_file_cache_errors on;
18
18
sendfile on;
19
+ tcp_nopush on;
19
20
server_tokens off;
20
- log_format custom '"$request" '
21
- 's=$status b=$body_bytes_sent t=$request_time '
22
- '"$http_x_forwarded_for" '
23
- '"$http_user_agent" "$http_referer"';
21
+ charset utf-8;
24
22
25
23
# running as non-root requires a writeable path
26
24
client_body_temp_path /tmp/nginx/client_temp;
@@ -29,12 +27,15 @@ http {
29
27
uwsgi_temp_path /tmp/nginx/uwsgi_temp;
30
28
scgi_temp_path /tmp/nginx/scgi_temp;
31
29
30
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
31
+ '$status $body_bytes_sent "$http_referer" '
32
+ '"$http_user_agent" "$http_x_forwarded_for"';
33
+ access_log /dev/stdout main;
34
+
32
35
server {
33
36
listen 8080;
34
37
server_name localhost;
35
38
36
- #access_log /var/log/nginx/host.access.log main;
37
-
38
39
location / {
39
40
absolute_redirect off;
40
41
root /usr/share/nginx/html;
You can’t perform that action at this time.
0 commit comments