Files
installerscript-sh/recipes/system/nginx-php/nginx.conf
2025-11-11 11:47:15 +01:00

19 lines
368 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /var/www/html;
index index.php index.html;
location / {
try_files $uri /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}