Skip to content

Commit

Permalink
update / redirect and error page
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Jul 9, 2024
1 parent 14b3c34 commit ceb8175
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wiki/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,20 @@ http {
server_name _;

location / {
absolute_redirect off;
return 301 /fr;
}

location /fr {
alias /usr/share/nginx/html/fr;
try_files $uri $uri/ /fr/index.html;
error_page 404 /fr/404.html;
}

location /en {
alias /usr/share/nginx/html/en;
try_files $uri $uri/ /en/index.html;
}

error_page 404 /404.html;
location = /404.html {
internal;
error_page 404 /en/404.html;
}
}
}

0 comments on commit ceb8175

Please sign in to comment.