Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | server { |
| 2 | listen 8081; |
| 3 | listen [::]:8081; |
| 4 | index index.php index.html; |
| 5 | server_name _; |
| 6 | error_log /var/log/nginx/error.log; |
| 7 | access_log /var/log/nginx/access.log; |
| 8 | root /dynmaps; |
| 9 | |
| 10 | location ~ \.php$ { |
| 11 | try_files $uri =404; |
| 12 | fastcgi_split_path_info ^(.+\.php)(/.+)$; |
| 13 | fastcgi_pass phpfpm:9001; |
| 14 | fastcgi_index index.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 | } |