This repository was archived by the owner on Jun 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ server {
2+ listen 80 default_server;
3+ listen [::]:80 default_server;
4+ server_name _;
5+ return 301 https://$host$request_uri;
6+ }
7+ server {
8+ listen 443 ssl default_server;
9+ listen [::]:443 ssl default_server;
10+ ssl_certificate /etc/nginx/certificate/s.crt;
11+ ssl_certificate_key /etc/nginx/certificate/s.key;
12+ root /var/www/html;
13+ index index.html;
14+ server_name _;
15+ error_page 404 404.html;
16+ location / {
17+ try_files $uri $uri/ =404;
18+ }
19+ }
20+
21+
22+ # Virtual Host configuration for ecolom
23+ #
24+ # You can move that to a different file under sites-available/ and symlink that
25+ # to sites-enabled/ to enable it.
26+ #
27+ server {
28+ listen 443 ssl ;
29+ listen [::]:443 ssl ;
30+ ssl_certificate /etc/nginx/certificate/s.crt;
31+ ssl_certificate_key /etc/nginx/certificate/s.key;
32+ root /var/www/ecolom;
33+ index index.html;
34+
35+ server_name ecolom.samsonov.net;
36+
37+ location / {
38+ try_files $uri /index.html =404;
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments