Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

nginx does not show me txt files

$
0
0
Hello partners,

My nginx server does not display the .txt files in the "/" directory, I can not find where the fault is, can you help me?

The website is a multisite in wordpress.



#redirections pages
rewrite ^ / blog /(.*)$ / blogs / $ 1 permanent;

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

#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;

## Expires headers
(js | css | png | jpg | jpeg | gif | ico) $ {
expires 30d;
add_header Pragma public;
add_header Cache-Control â "¢ publicà ¢ â,¬Â ??;
try_files $ uri @fallback;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>