# WebinolySSLredirectStart - HTTP to HTTPS Redirect
server {
listen 80;
listen [::]:80;
server_name subdomain.domain.tld;
if ($http_user_agent != 'Mozilla/5.0 (Windows; Valve Source Client) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1003.1 Safari/535.19 Awesomium/1.7.5.1 GMod/13') {
return 301 https://$host$request_uri;
}
access_log off;
error_log /var/log/nginx/subdomain.domain.tld.error.log;
root /var/www/subdomain.domain.tld/htdocs;
index index.php index.html index.htm;
include common/auth.conf;
# WebinolyCustom
# WebinolyCustomEnd
include common/php.conf;
include common/locations.conf;
include common/headers-http.conf;
include common/headers-html.conf;
include /var/www/subdomain.domain.tld/*-nginx.conf;
}
# WebinolySSLredirectEnd
# WebinolyNginxServerStart
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name subdomain.domain.tld;
# WebinolySSLstart
ssl_certificate /etc/letsencrypt/live.domain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live.domain.tld/privkey.pem;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/letsencrypt/live.domain.tld/chain.pem;
# WebinolySSLend
access_log off;
error_log /var/log/nginx/subdomain.domain.tld.error.log;
root /var/www/subdomain.domain.tld/htdocs;
index index.php index.html index.htm;
include common/auth.conf;
# WebinolyCustom
# WebinolyCustomEnd
include common/php.conf;
include common/locations.conf;
include common/headers-http.conf;
include common/headers-https.conf;
include common/headers-html.conf;
include /var/www/subdomain.domain.tld/*-nginx.conf;
}
# WebinolyNginxServerEnd
but after an update the config could be overwritten, right? how am i able to create a custom nginx-conf in var/www/subdomain.domain.tld/ ? what should the config look like?