From a32ad0a902df9013f798e4b56ce10601e1dcedec Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Fri, 23 Jun 2023 23:40:20 -0300 Subject: [PATCH] Try changing root index --- homepage.conf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/homepage.conf b/homepage.conf index c8d6aaf..fc2e017 100644 --- a/homepage.conf +++ b/homepage.conf @@ -2,7 +2,7 @@ server { # Server name, root and index server_name shoebottom.ca; # managed by Certbot root /home/isaac/www/shoebottom.ca; - index index.html; + index index.php index.html; # Listen on https listen [::]:443 ssl http2 ipv6only=on default_server; # managed by Certbot @@ -102,16 +102,15 @@ 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 /home/isaac/FileServer/index.php; - } - - # Enable php for file server only - location ~ /files/.*\.php$ { - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php8.1-fpm.sock; } }