From 998e010bee52fb769d48ea6c56e3b6a2e831b131 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Fri, 23 Jun 2023 23:25:44 -0300 Subject: [PATCH] Enable php --- homepage.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homepage.conf b/homepage.conf index fed9fec..5db717d 100644 --- a/homepage.conf +++ b/homepage.conf @@ -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