multisite – stuck with nginx config installing wpmu on subdir

Question

I want to install WordPress on wp.mydomain.tld/site1 or wp.mydomain.tld/site2 and I have created such record in cloudflare.
The fact is that , i’ve successfully installed WordPress, running it.
However, after changing the nginx config file i see a blank page.
I ssh into the server, changed /etc/hosts file, did a curl -v, the response status is 200, but the response body is empty.
It seems that nothing is passed to php-fpm.
Here’s my sites-enabled/wordpress
$uri $blogname{ ~^(?P/[^/]+/)files/(.) $blogpath ; } map $blogname $blogid{ default -999; #Ref: http://wordpress.org/extend/plugins/nginx-helper/ #include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ; } server { server_name example.com ; root /var/www/example.com/htdocs; index index.php; location ~ ^(/[^/]+)?/files/(.+) { try_files /wp-content/blogs.dir/$blogid/files/$2 /wp-includes/ms-files.php?file=$2 ; access_log off; log_not_found off; expires max; } #avoid php readfile() location ^~ /blogs.dir { internal; alias /var/www/example.com/htdocs/wp-content/blogs.dir ; access_log off; log_not_found off; expires max; } if (!-e $request_filename) { rewrite /wp-admin$ $scheme://$host$uri/ permanent; rewrite ^(/[^/]+)?(/wp-.) $2 last; rewrite ^(/[^/]+)?(/.*.php) $2 last; } location / { try_files $uri $uri/ /index.php?$args ; } location ~ .php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass php; } #add some rules for static content expiry-headers here }

0
Sam 2 months 2021-10-10T00:41:22-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse