Skip to content

Commit

Permalink
Fix nginx https server root file
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Nov 9, 2023
1 parent b5d727f commit c18f8da
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ http {
listen [::]:80;

server_name www.iscsc.fr iscsc.fr;
#server_name localhost;

root /blog; #Absolute path to where your hugo site is
index index.html; # Hugo generates HTML

location /.well-known/acme-challenge/ {
root /var/www/certbot;
Expand All @@ -42,6 +38,9 @@ http {
ssl_certificate /etc/nginx/ssl/live/iscsc.fr/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/iscsc.fr/privkey.pem;

root /blog; #Absolute path to where your hugo site is
index index.html; # Hugo generates HTML

location / {
try_files $uri $uri/ =404;
}
Expand Down

0 comments on commit c18f8da

Please sign in to comment.