Try changing root index

This commit is contained in:
Isaac Shoebottom 2023-06-23 23:40:20 -03:00
parent 07255753ef
commit a32ad0a902

View File

@ -2,7 +2,7 @@ server {
# Server name, root and index # Server name, root and index
server_name shoebottom.ca; # managed by Certbot server_name shoebottom.ca; # managed by Certbot
root /home/isaac/www/shoebottom.ca; root /home/isaac/www/shoebottom.ca;
index index.html; index index.php index.html;
# Listen on https # Listen on https
listen [::]:443 ssl http2 ipv6only=on default_server; # managed by Certbot listen [::]:443 ssl http2 ipv6only=on default_server; # managed by Certbot
@ -102,16 +102,15 @@ server {
alias /home/isaac/Media/Host; 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 # File server subdirectory
location /files { location /files {
alias /home/isaac/FileServer; 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;
} }
} }