• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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