Blueimp file upload "Not found" only on AWS ec2 instance

129 Views Asked by At

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

$('#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.

Console

consoleerror

Browser view

enter image description here

Can you please suggest any solution?

1

There are 1 best solutions below

1
On BEST ANSWER

Your Apache doesn't know it should use index.php as index page.

Add DirectoryIndex command to your Apache config or .htaccess. Something like this:

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