Added php to nginx-webserver

This commit is contained in:
2022-03-10 09:47:12 +01:00
parent 5108efea23
commit ec0a1adc01
3 changed files with 41 additions and 5 deletions

View File

@ -0,0 +1,15 @@
server {
listen 80;
root /var/www/html;
index index.php;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}