Enable php
This commit is contained in:
parent
a16ea0b22f
commit
998e010bee
@ -102,12 +102,19 @@ 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 index.php;
|
index index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
# Redirect http to https
|
# Redirect http to https
|
||||||
|
Loading…
Reference in New Issue
Block a user