diff --git a/public/templates/example.com.conf.html b/public/templates/example.com.conf.html index 80a113a..61e6971 100644 --- a/public/templates/example.com.conf.html +++ b/public/templates/example.com.conf.html @@ -12,6 +12,7 @@ server { ssl_certificate_key /etc/letsencrypt/live/{{ data.domain }}/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/{{ data.domain }}/fullchain.pem; + # $url{{ data.index_html ? ', index.html' : '' }}{{ data.php !== 'off' && data.index_php ? ', index.php' : '' }} location / { try_files $uri $uri/ {{ data.index_html ? '/index.html' : '' }}{{ data.index_html && data.php !== 'off' && data.index_php ? ' ' : '' }}{{ data.php !== 'off' && data.index_php ? '/index.php?$query_string' : '' }}; } @@ -107,6 +108,7 @@ server { root $base{{ data.document_root }}; root /var/www/{{ data.domain }}{{ data.document_root }}; + # $url{{ data.index_html ? ', index.html' : '' }}{{ data.php !== 'off' && data.index_php ? ', index.php' : '' }} location / { try_files $uri $uri/ {{ data.index_html ? '/index.html' : '' }}{{ data.index_html && data.php !== 'off' && data.index_php ? ' ' : '' }}{{ data.php !== 'off' && data.index_php ? '/index.php?$query_string' : '' }}; }