django-nginx-upload icon indicating copy to clipboard operation
django-nginx-upload copied to clipboard

Django - gunicorn - nginx 403 forbidden

Open waleedkhan044 opened this issue 5 years ago • 11 comments

waleedkhan044 avatar Jul 10 '20 07:07 waleedkhan044

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

waleedkhan044 avatar Jul 10 '20 07:07 waleedkhan044

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.

vsoch avatar Jul 10 '20 09:07 vsoch

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

waleedkhan044 avatar Jul 12 '20 12:07 waleedkhan044

I am sending you the config files and the code

waleedkhan044 avatar Jul 12 '20 12:07 waleedkhan044

image

waleedkhan044 avatar Jul 12 '20 12:07 waleedkhan044

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

image

waleedkhan044 avatar Jul 12 '20 12:07 waleedkhan044

image

waleedkhan044 avatar Jul 12 '20 12:07 waleedkhan044

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

waleedkhan044 avatar Jul 12 '20 12:07 waleedkhan044

The issue seems to be STATIC_SERVER_BASEPATH

vsoch avatar Jul 12 '20 16:07 vsoch

Sir can you please guide me how to solve this issue. I am trying to solve but didnt. Please help

On Sun, 12 Jul 2020, 9:08 pm Vanessasaurus, [email protected] wrote:

The issue seems to be STATIC_SERVER_BASEPATH

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vsoch/django-nginx-upload/issues/8#issuecomment-657242693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AITHKTHVHWDYQ57D5Q6RJWTR3HNZTANCNFSM4OWKL56A .

waleedkhan044 avatar Jul 12 '20 16:07 waleedkhan044

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.

vsoch avatar Jul 12 '20 17:07 vsoch