Css file mime type




















Connect and share knowledge within a single location that is structured and easy to search. I must be doing something wrong because it still isn't working. Eventually after some digging, removing one option at a time, I managed to trace the option that was causing the MIME types errors I was getting in the console.

I left out the obvious parts from the config to reduce duplication, this is just the base and you'll need to add the other config from your config, like the listen and the caching part. The Javascript files where also downloaded with the content of the index. Otherwise, the browser was complaining about css files interpreted as text instead of stylesheets. For me it worked, when i viewed the sources of my files that i got as response with nginx.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 6 years, 9 months ago. Active 6 months ago. Jon P Yousuf Daramay Yousuf Daramay 1 1 silver badge 9 9 bronze badges. How are you serving the files?

Post your code. Add a comment. Active Oldest Votes. Hargunbeer Singh Hargunbeer Singh 7 7 bronze badges. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. My whole www folder is a symlink back to a brtfs partition. It is weird. The permissions are correct. I even change to chmod -R. However, Chrome shows canceled in the status column. The Nginx's error. If you also did a symlink, somehow I don't understand anymore what could be the root cause. The ls -lZ which also show the SELinux states, shows everything is accessible:. Well, that's what I already wrote back on Oct 17th, the folder must be accessible by the www-data user.

I understand your message on Oct 17th to check the folder and the files inside the project root folder. The permission was good. However, I did know that I have to check the permission of the parent folders of the project folder also.

Skip to content. Star New issue. Jump to bottom. Labels question. Copy link. I am sure that my path name in my tag is right, and I'm confused to why I'm getting this error. If not, what do I need to put into my server file to remedy this issue? I don't think you do, but you shouldn't store files, let alone publicly accessible files in that directory. Instead what you are probably looking for is the static directory in your App's directory.

If you can't include a file in your HTML always double, or better even tripple check, that the file can be accessed through the browser first.

Also, the files are then located in I know this question is old, but wanted to add my two cents with a simple example as I took a while to figure out the issue. It works great as alanionita mentioned, only if your server is at the root of the filesystem.

Changing this to the Working Example app. I didn't noticed that, because when I open the HTML file locally, browsers seem to ignore this and import even files where the cases not match. This will only work if our server is at the root of the filesystem, which for servers is fine - for anything else, not so much. It will allows us to place the project folder anywhere on the drive without getting in the way of the runtime. Stack Overflow for Teams — Collaborate and share knowledge with a private group.



0コメント

  • 1000 / 1000