Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit a0cf6b4

Browse files
committed
nginx config to support browser refresh
1 parent 39e4590 commit a0cf6b4

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

conf/nginx.2.conf

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

0 commit comments

Comments
 (0)