Blueimp 文件上传 "Not found" 仅在 AWS ec2 实例上
Blueimp file upload "Not found" only on AWS ec2 instance
我正在使用 blueimp file upload 上传文件,它在我的本地和其他在线服务器上工作正常,但显示未找到的错误
$('#portfolioupload').fileupload({
dataType: 'json',
url: 'http://url/server/php/',
maxNumberOfFiles:1,
autoUpload:true,
});
显示 server/php 未找到,在从浏览器访问时显示,已检查的权限已设置为 777,它仅在 AWS 上不起作用。
控制台
浏览器视图
你能提出任何解决方案吗?
您的 Apache 不知道它应该使用 index.php
作为索引页。
将 DirectoryIndex
命令添加到您的 Apache 配置或 .htaccess
。像这样:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.html index.php
...
</Directory>
我正在使用 blueimp file upload 上传文件,它在我的本地和其他在线服务器上工作正常,但显示未找到的错误
$('#portfolioupload').fileupload({
dataType: 'json',
url: 'http://url/server/php/',
maxNumberOfFiles:1,
autoUpload:true,
});
显示 server/php 未找到,在从浏览器访问时显示,已检查的权限已设置为 777,它仅在 AWS 上不起作用。
控制台
浏览器视图
你能提出任何解决方案吗?
您的 Apache 不知道它应该使用 index.php
作为索引页。
将 DirectoryIndex
命令添加到您的 Apache 配置或 .htaccess
。像这样:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.html index.php
...
</Directory>