Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff


Force https to http redirect except for WordPress /wp-admin directory

First move all requests that are not wp-admin requests from https to http. Than i want to exclude all of WordPress admin from the https to http redirect, to keep WordPress admin working over https, so this is the result: RewriteEngine OnRewriteBase / RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/?(wp-admin/|wp-login\.php) RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} […]


Nginx as reverse proxy cache for wordpress and apache

1. Install Nginx * Install from PPA * Install using self build packages 2. General Nginx Settings Edit “/etc/nginx/nginx.conf” and modify or insert the following settings: […] http { […] # Gzip Settings gzip on; gzip_disable “msie6”; gzip_buffers 32 8k; gzip_comp_level 6; gzip_http_version 1.0; gzip_min_length 0; gzip_types text/html text/css image/x-icon application/x-javascript application/javascript text/javascript application/atom+xml application/xml […]

, , , , ,

Captchas for wordpress

During the last days i get a lot of russian spam comments. I decided to add captchas to the comment form on this blog. This works with the very simple SI CAPTCHA for WordPress plugin. I hobe this solve the problem. Update: It works.

, , ,