In China? Quick Google mirror setup using NGINX!

by , , revisited on

We have by far the largest RPM repository with dynamic stable NGINX modules and VMODs for Varnish 4.1 and 6.0 LTS. If you want to install NGINX, Varnish, and lots of useful modules for them, this is your one-stop repository to get all performance-related software.
You have to maintain an active subscription in order to be able to use the repository!

The Great Firewall of China restricts you from using Google. But you can easily setup your own Google bypass if you have some skills and.. NGINX!


  • A VPS with CentOS 7. For example, tiniest Linode plan will run you only $5/mo.
  • Your own domain name (subdomain or bare IP setup will do as well)

Setup Google mirror

yum install
yum install nginx-module-google

This installs stable NGINX and the key component of the solution – Google mirror module, as well its dependency – the substitutions module.

Then in your nginx.conf, load the modules at the top of the file:

load_module modules/;
load_module modules/;

Now create a configuration for a domain or IP address, and in the server {} section put

server {
    location / {
        google on;

Reload or restart NGINX, and viola! You have your own Google search at Wasn’t that easy? 🙂

For additional configuration directives of the Google mirror module (e.g. changing the language), refer to its documentation.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: