• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Issue Nginx wordpress multisite configuration

garcue

Regular Pleskian
Hello everyone,

I have the following problem, I have this configuration on one of my sites with nginx, on this site I have installed a wordpress multisite and I can not show the .txt files and the multisite hosted in / blogs /

Any ideas?

Code:
#redirecciones paginas
rewrite ^/blog/(.*)$ /blogs/$1 permanent;

#Forzado SSH
if ($ssl_protocol = "") {
    rewrite ^/(.*) https://$server_name/$1 permanent;
}

location = /ads.txt {
    alias /var/www/vhosts/infovaticana.com/httpdocs/ads.txt;
}

#ignored: "-" thing used or unknown variable in regex/rew
rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /$1wp-admin/ permanent;
if (-f $request_filename){
    set $rule_2 1;
}
if (-d $request_filename){
    set $rule_2 1;
}
if ($rule_2 = "1"){
    #ignored: "-" thing used or unknown variable in regex/rew
}
rewrite ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /$2 last;
rewrite ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ /$2 last;
rewrite /. /index.php last;
 
Back
Top