Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

🐛 Fix 403 errors when the url points to a directory without an index.html #5

Merged
merged 1 commit into from
Mar 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
server {
listen 80;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
try_files $uri /index.html =404;
}

include /etc/nginx/extra-conf.d/*.conf;
}