Static files forbiden on Ubuntu 21.04.
Closed this issue · 1 comments
rluzuriaga commented
Static files are giving a 403 forbidden error using Ubuntu 21.04. It seems to be an issue with the placement of the project files and nginx not having full access to it.
Tried changing the nginx.conf user to the server's username instead of www-data
and that seams to work.
Need to change the setup.sh to move the files to /var/www/...
so that the www-data
user can have access to it.
rluzuriaga commented
Doing a bit more research, it seems like changing the nginx.conf
file to use the current user instead of www-data
would be an easier fix, so will probably do that.