-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Css doesn't load - Nginx Deployment #3283
Comments
This isn't aiohttp issue, but nginx misconfiguration. Check you nginx error log for any file read errors. Make sure request for static location hit nginx, but not aiohttp. Your configuration perfectly works for me (1.12.2). |
I already checked all nginx logs. The only thing I have is the output of the chrome console. (Screenshot above). |
What the response will be if you request your css via curl? Will nginx send you correct Content-Type header? |
Ok, wtf. Now it randomly works. Did not change anything ... |
Perhaps it's a cache issue? Maybe relevant: |
Yeah that was probably the issue. Thank You all. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
Im trying to deplo my aiohttp server with nginx. This is my configuration of nginx:
Everything works fine, beside that css from the static route isnt working.
It seems like nginx returns it as text/plain. I know this is probably a problem with nginx, but they wasnt able to help me, so I ask here.
Expected behaviour
Css should load.
Actual behaviour
Css doesn't load.
Steps to reproduce
Your environment
Ubuntu 16.04 LTS 64bit,
Nginx 1.10.3,
aiohttp 3.4.4
The text was updated successfully, but these errors were encountered: