以前升级服务器发现url包含javascript的路径,全部无法访问。例如:https://blog.arayofsunshine.dev/javascript/es5
.
Forbidden
You don’t have permission to access /javascript/ on this server.
解决方案
禁用javascript-common:
a2disconf javascript-common service apache2 reload
如果出于某种原因要使用javascript-common:
a2enconf javascript-common service apache2 reload
Apache遇到的问题很多,本站已经改用Nginx了。
Apache doesn’t serve files in “javascript” directory. Why?
Related Posts
- 启用 HTTP/2 support in Apache
- Amazon S3 存储桶无法删除
- 关闭Sublime Text更新检查
- Device supports arm64-v8a, but APK only supports armeabi on device *
- npm ERR! gyp verb `which` failed Error: not found: python
- c++ ‘-DNODE_GYP_MODULE_NAME=libsass’ ‘-DUSING_UV_SHARED=1’ ‘-
- Sublime Text 自动换行
- macOS中staff和wheel是什么?
- command not found: deno – macOS