WHile trying to replicate Apple Airscan protocol I am getting this error on the POSTed file upload. This is from Mopria Android client to the Apache server so I can not change anything on the client end.
192.168.0.8 - - [16/May/2019:02:11:19 -0500] "POST /eSCL/ScanJobs
HTTP/1.1" 404 506 "-" "okhttp/3.9.1"
I even set /eSCL/ScanJobs for 777 permissions
404 not found 506 refers to space
Server version: Apache/2.4.18 (Ubuntu)
I have been through the wringer with this so far and now so close but yet so far for small problems like this
Need change something in apache2.conf to allow the upload or is changing permissions sufficcient? As of yet I have built nothing to process the file but thinking it should post
Here is the additional info: aftter Original Post------------------------
Thanks for recognising that is from a log file.
the server root is /var/www/html The error refers to /var/www/html/eSCL/SanJobs which is a valid directoy with ownership of www-data (appropriate for Ubuntu Linux) and 777 permissions.
There is no misconfiguration that I can see as the main index.php lies at /var/www/html and loads correctly
This is nearly a defualt install on ubuntu linux, installed on localhost.
The POST is coming fom a Mopria Android Client
I have added the following to Apache2.conf to deal with no trailing slashes with no redirects
<Directory /var/www/>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.*) $1.php [L]
RewriteCond %{REQUEST_FILENAME}.xml -f
RewriteRule (.*) $1.xml [L]
</IfModule>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
there is also an .htaccess file with the following:
DirectorySlash Off
#RewriteOptions AllowNoSlash
This leaves me with the question , as to what I must do to parse the POST request? I mean I know I will use PHP to parse it later, but want to get the file before I move on. The file should still be POSTed without any handling , correct?