lxd-dashboard/default
matthewalanpenning 8f0af612aa v1.0.0
2020-08-21 14:57:58 -04:00

28 lines
672 B
Text

server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
#include snippets/fastcgi-php.conf;
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
location /admin {
auth_basic "LXDWARE Admin Area";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}