/usr/local/etc/nginx/nginx.conf

WordPress Rename Image URL For a CDN Usage

by Vivek Gite on November 20, 2010 · 22 comments

Recently, we moved all our static assets to a CDN as described here. However, we have over 8000+ old blog posts and we need to point static images url to our CDN account hosted at http://MyACCOUNT.cloudfront.net/images/ folder. How do I rename all image urls stored in wordpress posts? How do I offload static images to a CDN urls under Wordpress?

{ 22 comments }

I block or deny access based on the host name or IP address of the client visiting website under nginx web server. I want to display customized e403.html error page, but it doesn’t appear to be working. Nginx always displays the built-in, hardcoded “403 Forbidden” error message. Here is my configuration:

.....
  ...
 deny 1.2.3.4;
 deny 91.212.45.0/24;
 deny 91.212.65.0/24;
 .....
 ...
 error_page 403 /e403.html;
        location = /e403.html {
           root   html;
       }

How do I fix this problem and display custom error 403 page under nginx server?

{ 1 comment }

I know how to force and redirect www.example.com to example.com under Lighttpd web server. How do I force nginx web server to redirect www.example.com/page/1/2/3 to example.com/page/1/2/3?

{ 6 comments }

How do I block or deny access based on the host name or IP address of the client visiting website under nginx web server?

{ 9 comments }

FreeBSD: Nginx FastCGI PHP Configuration

by Vivek Gite on October 9, 2008 · 10 comments

Q. How do I configure PHP as FastCGI under FreeBSD Nginx webserver?

{ 10 comments }

Q. How do I start / stop / restart Nginx webserver under FreeBSD operating systems? How do I test Nginx web server config file syntax before restarting my server?

{ 0 comments }