• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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