|
@@ -0,0 +1,20 @@
|
|
|
+# SSL example
|
|
|
+server {
|
|
|
+ listen *:443 ssl;
|
|
|
+ server_name www.irina.osvoj.ru irina.osvoj.ru;
|
|
|
+ if ($host ~* www\.(.*)){
|
|
|
+ set $host_without_www $1;
|
|
|
+ rewrite ^(.*)$ http://$host_without_www$1 permanent;
|
|
|
+ }
|
|
|
+
|
|
|
+ include /etc/nginx/ssl_params;
|
|
|
+ ssl_certificate /etc/letsencrypt/live/irina.osvoj.ru/fullchain.pem;
|
|
|
+ ssl_certificate_key /etc/letsencrypt/live/irina.osvoj.ru/privkey.pem;
|
|
|
+
|
|
|
+ access_log /var/log/nginx/$host.ssl_access_log main;
|
|
|
+ error_log /var/log/nginx/$host.ssl_error_log info;
|
|
|
+
|
|
|
+ root /home/user/$host/htdocs;
|
|
|
+
|
|
|
+ #include /var/www/$domain/etc/hosts_params;
|
|
|
+}
|