dwfwfwfwf commited on
Commit
ff6abed
·
verified ·
1 Parent(s): 3469cf8

Create nginx-main-hf.conf

Browse files
Files changed (1) hide show
  1. nginx-main-hf.conf +40 -0
nginx-main-hf.conf ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ worker_processes auto;
2
+
3
+ # Redirect error log and pid file to /tmp
4
+ error_log /tmp/nginx_error.log warn;
5
+ pid /tmp/nginx.pid;
6
+
7
+
8
+ events {
9
+ worker_connections 1024;
10
+ }
11
+
12
+
13
+ http {
14
+ include /etc/nginx/mime.types;
15
+ default_type application/octet-stream;
16
+
17
+ # Redirect log format and access log to /tmp
18
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
19
+ '$status $body_bytes_sent "$http_referer" '
20
+ '"$http_user_agent" "$http_x_forwarded_for"';
21
+
22
+ access_log /tmp/nginx_access.log main;
23
+
24
+ sendfile on;
25
+ #tcp_nopush on;
26
+
27
+ keepalive_timeout 65;
28
+
29
+ #gzip on; # Handled in default.conf
30
+
31
+ # Redirect temporary paths to /tmp
32
+ client_body_temp_path /tmp/client_body_temp;
33
+ proxy_temp_path /tmp/proxy_temp;
34
+ fastcgi_temp_path /tmp/fastcgi_temp;
35
+ uwsgi_temp_path /tmp/uwsgi_temp;
36
+ scgi_temp_path /tmp/scgi_temp;
37
+
38
+ # Include server block configurations
39
+ include /etc/nginx/conf.d/*.conf;
40
+ }