blob: 74291b14742a5a80d79736b7571922278aac8f3c [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001server {
2 listen 9081;
3 index index.php index.html;
4 server_name _;
5 error_log /var/log/nginx/error.log;
6 access_log /var/log/nginx/access.log;
7 root /meta_exporter;
8 client_max_body_size 10M;
9 location ~ \.php$ {
10 client_max_body_size 10M;
11 try_files $uri =404;
12 fastcgi_split_path_info ^(.+\.php)(/.+)$;
13 fastcgi_pass phpfpm:9001;
14 fastcgi_index pipe.php;
15 include fastcgi_params;
16 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
17 fastcgi_param PATH_INFO $fastcgi_path_info;
18 }
19}