Try changing root index
This commit is contained in:
parent
07255753ef
commit
a32ad0a902
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user