• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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