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

配置Nginx打开主页后出现MIME类型错误 #7322

Closed
4 tasks done
ArthurZhou opened this issue Oct 12, 2024 · 3 comments
Closed
4 tasks done

配置Nginx打开主页后出现MIME类型错误 #7322

ArthurZhou opened this issue Oct 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ArthurZhou
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.38.0

Driver used / 使用的存储驱动

Local

Describe the bug / 问题描述

配置nginx后打开主页浏览器控制台报错Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

不使用Nginx直接访问时正常

image

Reproduction / 复现链接

临时链接

Config / 配置

alist相关配置:

{
  "site_url": "/alist",
  
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  
}

Nginx配置来自文档

Logs / 日志

No response

@ArthurZhou ArthurZhou added the bug Something isn't working label Oct 12, 2024
Copy link

welcome bot commented Oct 12, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@Simonzhang8
Copy link

我这边打开你的链接 没看到你这个报错啊

@ArthurZhou
Copy link
Author

ArthurZhou commented Oct 12, 2024

重装nginx并清空浏览器缓存后解决了🤔,可能是之前配置的时候改坏了什么东西

如果问题再次出现我再重开issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants