lightboxgroup
Forum Replies Created
-
Forum: Plugins
In reply to: [Wordfence Security - Firewall, Malware Scan, and Login Security] Nginx ConfOk great! In the meantime thanks for all your support Matt!
Forum: Plugins
In reply to: [Wordfence Security - Firewall, Malware Scan, and Login Security] Nginx ConfConsider that we publish probably around 50-60 posts each day…does the cache get completely emptied each time?
Forum: Plugins
In reply to: [Wordfence Security - Firewall, Malware Scan, and Login Security] Nginx ConfDear Matt,
here the Cache Stats:
Total files in cache: 8
Total directories in cache: 3
Total data: 333KB
Largest file: 101KB
Oldest file in cache created 19 hours ago.
Newest file in cache created 19 hours ago.Considering that our website is made of about 17000 links is this a normal status?
Thanks again for all your help
Forum: Plugins
In reply to: [Wordfence Security - Firewall, Malware Scan, and Login Security] Nginx ConfDear Matt,
our include is at the end of the nginx.conf file in the http block
include /etc/nginx/conf.d/*.conf;Here is our updated version of the wf.conf file:
server { # WORDFENCE FALCON ENGINE CODE #Match on gzip first because ordering matters. location ~ "/usr/share/nginx/www/wp-content/wfcache/.*gzip$" { gzip off; types {} default_type text/html; add_header Vary "Accept-Encoding, Cookie"; add_header Content-Encoding gzip; } #If the previous matched, the following location won't be executed. location ~ /usr/share/nginx/www/wp-content/wfcache/.* { add_header Vary "Accept-Encoding, Cookie"; } set $wordfenceCacheOn 1; #Don't cache form submissions. if ($request_method = POST) { set $wordfenceCacheOn 0; } #Allow caching of /?123=123 because this is a common DDoS to override caches. if ($query_string !~ "^(?:d+=d+)?$") { set $wordfenceCacheOn 0; } #Only cache URL's ending in / if ($request_uri !~ /$) { set $wordfenceCacheOn 0; } #Don't cache any cookies with this in their names e.g. users who are logged in. if ($http_cookie ~* "(comment_author|wp-postpass|wf_logout|wordpress_logged_in|wptouch_switch_toggle|wpmp_switcher)") { set $wordfenceCacheOn 0; } set $wordfenceEncoding ""; #Oh, you want gzipped content? if ($http_accept_encoding ~ gzip) { set $wordfenceEncoding _gzip; } set $wordfenceHTTPS ""; if ($scheme = 'https'){ #If you want to ENABLE HTTPS caching, comment out the next line. set $wordfenceCacheOn 0; #Comment this line out to enable HTTPS caching. set $wordfenceHTTPS '_https'; #Uncomment this line to enable HTTPS caching. } #The main purpose of this line is to capture the URL components into variables. if ($request_uri !~ "^/*(?<wfone>[^/]*)/*(?<wftwo>[^/]*)/*(?<wfthree>[^/]*)/*(?<wffour>[^/]*)/*(?<wffive>[^/]*)(?<wfsix>.*)$"){ set $wordfenceCacheOn 0; } #If the file doesn't exist then don't serve from cache. if (!-f "$document_root/wp-content/wfcache/${http_host}_${wfone}/${wftwo}~${wfthree}~${wffour}~${wffive}~${wfsix}_wfcache${wordfenceHTTPS}.html${wordfenceEncoding}") { set $wordfenceCacheOn 0; } if ($wordfenceCacheOn = 1) { rewrite .* "/wp-content/wfcache/${http_host}_${wfone}/${wftwo}~${wfthree}~${wffour}~${wffive}~${wfsix}_wfcache${wordfenceHTTPS}.html${wordfenceEncoding}" last; } # END Wordfence Rules }Could it be that the problems is that we continually create posts and update them so the cache get purged too often? Because we still don’t see any improvement…
Forum: Plugins
In reply to: [Wordfence Security - Firewall, Malware Scan, and Login Security] Nginx ConfDear Matt,
thanks for your reply, we actually have two server blocks as you can see (where mysite is our domain of course):
server { listen 80; server_name www.developmysite.com developmysite.com www.mysite.com; return 301 $scheme://mysite.com$request_uri; } server { listen 80; server_name mysite.com; root /usr/share/nginx/www; index index.php index.html index.htm; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location = /sitemap.xml { allow all; log_not_found off; access_log off; }We would like Falcon to work on mysite.com and not developmysite.com
Thanks in advance