Skip to content
Advertisement

You have chosen to open application/octet-stream – wordpress

I have set up nginx on Ubuntu 20.4 and installed PHP 7.4.3.

Here is the content of /etc/nginx/sites-available/default

JavaScript

when I type my domain in my firefox browser, I see this downloading page application/octet-stream

In addition to that, www did not redirect to the domain without it. I am not sure if this is a separate issue.

The downloaded file has a random name and its content is so scary (Direct PHP) file:

JavaScript

I also ran

JavaScript

But the result does not change.

Advertisement

Answer

These lines should be added to the nginx config

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement