forked from emlog/emlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
25 lines (23 loc) · 699 Bytes
/
nginx.conf
File metadata and controls
25 lines (23 loc) · 699 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
# for docker nginx config
upstream phpupstream {
server php:9000 fail_timeout=5s max_fails=5;
}
server {
listen 8080;
server_name localhost;
root /app/emlog;
index index.php index.html index.htm;
client_max_body_size 2048M;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php last;
}
}
location ~ \.php$ {
fastcgi_pass phpupstream;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}