I’m moving out a blog to a new domain, and redirect all posts specifically to a new domain.
should go to
On Apache that allows .htaccess, you can add this line on top of the file:
RewriteRule ^(.*)$ http://www.newsite.COM/$1 [R=301,L]
On Nginx, add this line on server block configuration file:
return 301 http://newdomain.com$request_uri;
Reload or restart Nginx for the change to take effect.
With recent updates, WordPress has increased it server requirement from PHP 5.6 to PHP 7. I think it is the best time to upgrade PHP to follow the requirement. FYI, Most of my servers are running based on Debian Jessie. Continue reading “Upgrade PHP 5.6 to PHP 7 on Nginx / Debian Jessie”
One of my server had cpu outage last week because of a script repeating to access wp-login.php file with hundreds of request per minute.
if you do
tail -f access.log it will return repeating requests
126.96.36.199 - - [22/Aug/09:31:14:11 +0000] "GET /wp-login.php HTTP/1.1" 200 3327 "-" "Mozilla/4.0"
I will share my steps to recover it;
Continue reading “What You Have Todo if a Brute Force Attacking Your WordPress Sites”
A friend asked me about how to change bash’s prompt color after you logged in, regarding my previous post.
Continue reading “How to change bash prompt color”
For few years I’ve been working on 32-Bit Architechture within a machine named “Whiterose”.
Continue reading “Moving Server to 64 Bit Architechture”