Enable php

This commit is contained in:
Isaac Shoebottom 2023-06-23 23:25:44 -03:00
parent a16ea0b22f
commit 998e010bee

View File

@ -102,12 +102,19 @@ server {
alias /home/isaac/Media/Host;
}
# Enable PHP
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
}
# File server subdirectory
location /files {
alias /home/isaac/FileServer;
index index.php;
}
}
server {
# Redirect http to https