• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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