Aug 22, 2017 | Malicious Code, Nginx, PHP, Ubuntu 14.04 Server
#trigger by wordpress https://wordpress.org/support/topic/link-templatephpsuspected/ cd /path/to/scan egrep -Rl '\$GLOBALS.*\\x|function.*for.*strlen.*isset|isset.*eval' *
Apr 22, 2015 | Nginx, Ubuntu 12.04 Server Management, Uncategorized
Redirect single domain with www to non-www. For example, redirecting of http://www.dennylabs.com to http://dennylabs.com. Why do we need to redirect www to non-www or vice versa? It all because of SEO purposes. Google treats your content as duplicate when they are crawl-able from both www and non-www. Nginx configuration for single domain redirection of www to non-www . server { server_name www.dennylabs.com; return 301 $scheme://dennylabs.com$request_uri; } Nginx configuration for multiple domains redirection of www to non-www. server { server_name "~^www\.(.*)$" ; return 301 $scheme://$1$request_uri;...