-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnginx.conf
More file actions
24 lines (23 loc) · 771 Bytes
/
nginx.conf
File metadata and controls
24 lines (23 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
events {}
http {
server {
listen 80;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/index.html =404;
}
error_page 404 /404/index.html;
location = /404/index.html {
root /usr/share/nginx/html;
internal;
}
rewrite ^/.well-known/security.txt$ https://vdp.cabinetoffice.gov.uk/.well-known/security.txt permanent;
rewrite ^/.well-known/thanks.txt$ https://vdp.cabinetoffice.gov.uk/thanks.txt permanent;
}
include mime.types;
default_type text/html;
gzip_types text/plain text/xml text/css
text/comma-separated-values
text/javascript application/x-javascript
application/atom+xml;
}