Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django - gunicorn - nginx 403 forbidden #8

Open
waleedkhan044 opened this issue Jul 10, 2020 · 11 comments
Open

Django - gunicorn - nginx 403 forbidden #8

waleedkhan044 opened this issue Jul 10, 2020 · 11 comments

Comments

@waleedkhan044
Copy link

No description provided.

@waleedkhan044
Copy link
Author

i have set the configuration files for nginx but it is not giving me file content. please help

@vsoch
Copy link
Owner

vsoch commented Jul 10, 2020

I can help only if I can reproduce your error, so please provide complete instructions from downloading the repository to doing so. I would first check inside both containers that the containers in /tmp are created, as this is a bug I've seen before.

@waleedkhan044
Copy link
Author

actually i want to collect static and media files to the nginx server for that i am getting error.

@waleedkhan044
Copy link
Author

I am sending you the config files and the code

@waleedkhan044
Copy link
Author

image

@waleedkhan044
Copy link
Author

but i am getting error when i run 'python manage.py collectstatic' (DEBUG=False)

image

@waleedkhan044
Copy link
Author

image

@waleedkhan044
Copy link
Author

I am not able to add the static and media files to my var/www/html folder so that it can be accessed through nginx server. please help thanks

@vsoch
Copy link
Owner

vsoch commented Jul 12, 2020

The issue seems to be STATIC_SERVER_BASEPATH

@waleedkhan044
Copy link
Author

waleedkhan044 commented Jul 12, 2020 via email

@vsoch
Copy link
Owner

vsoch commented Jul 12, 2020

Listen to the error message. It’s trying to copy files to a web address, a path that doesn’t exist obviously. Does that make any sense? That path should not have a web address but should be a path on your system. I’m happy to help but this is outside of the scope of the module here and you might consider posting on other general Django help boards. I’m also not a sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants