How to stop blocking pdf from displaying?

December 10, 2014 1.5k views

I am new to web development so I do not know what exactly causes the problem: apache2 or ubuntu or something else. Yesterday I followed this tutorial ([ and deployed my fist app online(Ubuntu 14.04 and apache2). It is written in Flask/Python. My app writes some data to a text file which is used later for generation of a pdf file which is displayed to the user using PDF.js extension. Unfortunately, a pdf is not displayed because either a text file was not generated or pdf is blocked from displaying. Everything works great on my local server. So, I am wondering how to give permission for writing a file and displaying a pdf. Any suggestions are highly appreciated!


  • What does occur when you try to view the pdf? Are you receiving any error messages either in the browser or in your Apache log files?

  • Yes, I get this error in the browser "Not Found. The requested URL was not found on the server".

  • Hi there, I'm having the same exact problem. I'm getting a 404 error. Was this problem solved? Thanks!

Be the first one to answer this question.