• The good thing: I've a working PyWPS process.
  • The bad thing: I cannot access the output using the PyWPS Javascript client.

What I did.

I created an PyWPS python script with one LiteralInput (type=FloatType) and one ComplexOutput (formats='mimeType':'xml/application') from the browser accessible by:


And gives the following output:

enter image description here

This seems to be OK.

I've created a PyWPS Javascript Client and tried two options, one by hand and one automatic. The one manually only gives me null as output, but the automatic gives output. It provide a URL as a reference as seen below:

enter image description here

That's fine, and if I look in this folder this file is created, is accessible and contains output. But if I try to access this URL from within my browser it tells me that the requested URL was not found on the server. As can be seen in the following screenshot.

enter image description here

1 Answer 1


I resolved the issue by this answer on askubuntu.com:

The apache2 version that was published when the Ubuntu 14.04 release was made is 2.4.7 and starting with this version it seems that, for security reasons, the new root directory for the server is:


So, from now, here you must to place the files for your (local) website. And like this you should not have this problem again with the future updates.

Anyway, if you want to change this directory with another one, you have to modify (as root) the following line from /etc/apache2/sites-available/000-default.conf file (sudo nano /etc/apache2/sites-available/000-default.conf):

DocumentRoot /var/www/html


DocumentRoot /var/www

After these, to take effect the new changes , you must to restart apache server using the following command:

sudo service apache2 restart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.