summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/exemple.fr.conf
blob: 29daea1513e97c1d0136fee883dcb46144665ced (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
server {
    listen 80;
    server_name exemple.fr;

    location / {
        return 301 https://$host$uri;
    }
}

server {
    listen 443 ssl;
    server_nam  exemple.fr;
    ssl_certificate /etc/letsencrypt/live/exemple.fr/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/exemple.fr/privkey.pem;
}