-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.example.conf
More file actions
39 lines (31 loc) · 1001 Bytes
/
nginx.example.conf
File metadata and controls
39 lines (31 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
user nobody nobody;
worker_processes 1;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
#
# This should be changed to whatever you config to real server.
#
root /var/www/your/project/;
index index.html;
keepalive_timeout 5;
keepalive_requests 100;
log_format default '$remote_addr - $remote_user $time_local "$request" $status $body_bytes_sent';
error_log logs/error_log warn;
server {
listen 80;
server_name your.server.com www.your.server.com;
allow all;
location "/var/www/your/project/" {
autoindex off;
}
location / {
proxy_pass http://127.0.0.1:3337/;
proxy_redirect / 127.0.0.1:3337/;
}
proxy_set_header Host $http_host;
}
}