简体   繁体   English

仅在AWS ec2实例上“未找到” Blueimp文件上传

[英]Blueimp file upload “Not found” only on AWS ec2 instance

I am using blueimp file upload for uploading files, it is working fine on my local and other online server, but shows me error of not found 我正在使用blueimp文件上传来上传文件,在我的本地和其他在线服务器上工作正常,但是显示未找到错误

$('#portfolioupload').fileupload({
        dataType: 'json',
        url: 'http://url/server/php/',
        maxNumberOfFiles:1,
        autoUpload:true,
    });

shows me server/php not found, where as while visiting from browser it shows, checked permissions are already set to 777, Its only not working on AWS. 显示未找到服务器/ php,从浏览器访问时显示的位置,已检查的权限已设置为777,仅在AWS上不起作用。

Console 安慰

控制台错误

Browser view 浏览器视图

在此处输入图片说明

Can you please suggest any solution? 您能提出任何解决方案吗?

Your Apache doesn't know it should use index.php as index page. 您的Apache不知道它应该使用index.php作为索引页面。

Add DirectoryIndex command to your Apache config or .htaccess . DirectoryIndex命令添加到您的Apache配置或.htaccess Something like this: 像这样:

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    DirectoryIndex index.html index.php
    ...
</Directory>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM