yeswiki-installer/templates/nginx-for-ssl-certificate.php

14 lines
465 B
PHP
Raw Normal View History

# ----------------------------------------------------------------------
# | Config file for ssl certificate for <?=$this->e($domain)?> host |
# ----------------------------------------------------------------------
server {
listen [::]:80;
listen 80;
server_name www.<?=$this->e($domain)?> <?=$this->e($domain)?>;
location ^~ /.well-known/acme-challenge/ {
root /home/<?=$this->e($user)?>/<?=$this->e($domain)?>;
try_files $uri =404;
}
}