-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.site.conf
64 lines (58 loc) · 2.07 KB
/
nginx.site.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
upstream unilex { server 127.0.0.1:8001; }
server {
listen 80;
server_name unilexicon.com www.unilexicon.com *.unilexicon.com;
return 301 https://unilexicon.com$request_uri;
}
server {
listen 443 ssl http2;
server_name unilexicon.com;
ssl_certificate /home/f/SERVER/ssl/cert_fullchain.pem;
ssl_certificate_key /home/f/SERVER/ssl/cert_privkey.pem;
root /home/f/SITES/unilex/static;
client_max_body_size 500M;
access_log /home/f/SERVER/logs/unilexicon.log;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
default_type text/html;
location / {
ssi on;
try_files $uri $uri/index.html @x;
}
location /uxfont/ {
add_header "Access-Control-Allow-Origin" *;
}
location /vocabularies { return 301 https://unilexicon.com/tree/;}
location ~ ^/vocabularies/(.*) { return 301 /tree/$1; }
location @x { proxy_pass http://unilex; }
error_page 500 502 503 504 /50x.html;
error_page 404 /404.html;
error_page 403 /403.html;
}
server {
listen 80;
listen 443 ssl http2;
server_name *.unilexicon.com;
ssl_certificate /home/f/SERVER/ssl/cert_fullchain.pem;
ssl_certificate_key /home/f/SERVER/ssl/cert_privkey.pem;
return 301 https://unilexicon.com$request_uri;
}
server {
listen 80;
listen 443 ssl http2;
server_name medicinedict.com *.medicinedict.com;
ssl_certificate /home/f/SERVER/ssl/cert_fullchain.pem;
ssl_certificate_key /home/f/SERVER/ssl/cert_privkey.pem;
return 301 https://unilexicon.com/med$request_uri;
}
server {
listen 80;
listen 443 ssl http2;
server_name vizualbod.com *.vizualbod.com;
ssl_certificate /home/f/SERVER/ssl/cert_fullchain.pem;
ssl_certificate_key /home/f/SERVER/ssl/cert_privkey.pem;
location /sluzby/pristupnost/ { return 301 https://unilexicon.com/fm/sk/pristupnost;}
location /f/spam-guidelines.htm { return 301 https://unilexicon.com/fm/sk/seo;}
location / { return 301 https://unilexicon.com/fm$request_uri; }
}