server { listen 80; server_name _; root /var/www/html; index index.php; client_max_body_size 20m; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header Referrer-Policy "same-origin" always; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { fastcgi_pass php-dynamic-qrcode:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Statisch gegenereerde qrcodes mogen gedownload worden, maar niet als PHP uitgevoerd. location /saved_qrcode/ { location ~ \.php$ { deny all; } } location ~ /\. { deny all; } }