Nginx serves .php files as downloads, instead of executing them

I am installing a website in a droplet (Digital Ocean). I have a issue for install NGINX with PHP properly. I did a tutorial https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04 but when I try to run some .php file it’s just downloading it… for example… http://5.101.99.123/info.php it’s working but… If I go to the main http://5.101.99.123 it’s downloading my index.php … Read more

Have nginx access_log and error_log log to STDOUT and STDERR of master process

Is there a way to have the master process log to STDOUT STDERR instead of to a file? It seems that you can only pass a filepath to the access_log directive: access_log /var/log/nginx/access.log And the same goes for error_log: error_log /var/log/nginx/error.log I understand that this simply may not be a feature of nginx, I’d be … Read more

Multisite setup on VVV with bedrock

I am trying to setup multisite on VVV using bedrock stack, but I’m having some issues. First I’ve added my multisite configuration in the vvv-custom.yml file as my-multisite: hosts: – my-multisite.dev – site1.my-multisite.dev – site2.my-multisite.dev – site3.my-multisite.dev custom: wp_type: subdomain I added the /my-multisitefolder to the /www folder. Inside it, I added the /provision folder … Read more

WordPress multisite subdirectory on nginx behind reverse proxy

I can’t seem to make wordpress multisite subdirectories work behind my reverse proxy. Locally (from lan ip addresses) all works, I can access the main domain, sub-directories and all dashboards. The moment I add a reverse proxy, I cannot access the network dashboard (Redirect loop) nor the multisites subdirectories (redirects to lan ip). If I … Read more