added php support

This commit is contained in:
gyurix
2024-07-01 08:50:03 +02:00
parent ab5ca570b7
commit 725498a0d3
2 changed files with 11 additions and 2 deletions

View File

@@ -27,7 +27,12 @@ http {
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html
index index.html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
include fastcgi_params;
}
error_page 500 502 503 504 /50x.html;