I use NextGEN Gallery to ,anage images on my blog, but it is better to use separate domain for retrieving images. In this case browser use additional threats to load images and nginx can quick proceed images request.

I created new subdomain g.tigor.me specially for NextGen Gallery.

tigor.me and g.tigor.me should be on the same server.

WordPress filter

To enable images path rewriting paste this code to your theme in functions.php.

Don’t forget to change tigor.me to your blog domain.

Nginx configuration

Now it’s time to add g.tigor.me to nginx.