Tag Archives: nginx

A WordPress broken link helper

Just an example. For wordpress ppl who changed their perm link. Download: brokenlinkhelper.php<?php require_once( dirname(__FILE__) . ‘/wp-load.php’ );   global $wpdb;   $uri = $_SERVER["REQUEST_URI"]; $pattern = "/^\/(\d{4})\/(\d{2})\/(\d{2})\/([^\d].*|\d+[.^-]*).html$/"; if (preg_match($pattern, $uri, $match) == 1) {     $year = $match[1];     $month … Continue reading

Posted in Default | Tagged , | 7 Comments

Configure nginx as front-end web server

I’ve been using lighttpd for a long time, it’s faster and stable. But 1.4.x series of lighttpd lacks some features I need: powerful proxy mod, dav_svn mod, real IP extract (as mod_extract_forwarded in apache). Most of the bandwidth of feuvan.net … Continue reading

Posted in Default | Tagged , | 2 Comments