1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pelican_ynh.git synced 2024-09-03 19:46:35 +02:00
pelican_ynh/conf/nginx.conf
2017-08-09 02:39:51 +02:00

16 lines
339 B
Nginx Configuration File

root /var/www/pelican/output/;
location {LOCATION} {
alias {DESTDIR}/output;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
try_files $uri.html $uri/;
# Deny access to hidden files and directories
location ~ ^{PATH}/(.+/|)\.(?!well-known\/) {
deny all;
}
}