oliverdavies.uk/config/nginx

31 lines
603 B
Plaintext
Raw Normal View History

2017-09-11 06:41:50 +00:00
ssl_certificate /etc/letsencrypt/live/oliverdavies.uk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/oliverdavies.uk/privkey.pem;
2017-09-11 06:06:29 +00:00
server {
listen 80;
server_name oliverdavies.uk;
server_name www.oliverdavies.uk;
return 301 https://www.oliverdavies.uk$uri$is_args$args;
}
server {
listen 443 ssl;
server_name oliverdavies.uk;
return 301 https://www.oliverdavies.uk$uri$is_args$args;
}
server {
listen 443 ssl;
server_name www.oliverdavies.uk;
root /var/www/oliverdavies.uk/output_prod;
rewrite ^/about/?$ / permanent;
2017-09-11 06:43:18 +00:00
rewrite ^/speaking/?$ /talks permanent;
2017-09-11 06:06:29 +00:00
}