Skip to content

Commit

Permalink
config(nginx): Use root instead of alias
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Feb 8, 2024
1 parent 861e6c8 commit 349874b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/custom-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ server {

# Serve static files from the Django app
location /django_static/ {
alias /nginx/static/;
root /nginx/static/;
}

# Serve uploaded files from the Django app
location /upload/ {
alias /nginx/upload/;
root /nginx/upload/;
}

# Proxy pass to the Django app
Expand Down

0 comments on commit 349874b

Please sign in to comment.