Build Google Mirror By Nginx

Server Environment

1
2
3
4
$ cat /etc/issue
Ubuntu 14.04.4 LTS
$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)

Nginx Add Request Host In Log Format

Server environment

1
2
3
4
5
$ cat /etc/issue
Ubuntu 16.04.3 LTS

$ nginx -v
nginx version: nginx/1.10.3 (Ubuntu)

Nginx + Keepalived, high available load balance

Server environment

1
2
3
4
5
6
7
8
$ cat /etc/issue
Ubuntu 14.04.5 LTS

$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)

$ apachectl -V
Server version: Apache/2.4.7 (Ubuntu)

Nginx using X-Accel-Redirect response header to control file been download

Server Environment

1
2
3
4
5
6
7
8
$ cat /etc/issue
Ubuntu 14.04.5 LTS \n \l

$ php -v
PHP 5.6.33-1+ubuntu14.04.1+deb.sury.org+1 (cli)

$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)

How Nginx Add Basic Auth

Server Environment

1
2
3
4
$ cat /etc/issue
Ubuntu 14.04.4 LTS
$ nginx -v
nginx version: nginx/1.10.3 (Ubuntu)

Enable apache remoteip moddule

Server environment

1
2
3
4
5
6
7
8
$ cat /etc/issue
Ubuntu 14.04.5 LTS

$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)

$ apachectl -v
Server version: Apache/2.4.7 (Ubuntu)

Get real client IP from Nginx to Apache

Server environment

1
2
3
4
5
6
7
8
$ cat /etc/issue
Ubuntu 14.04.5 LTS

$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)

$ apachectl -v
Server version: Apache/2.4.7 (Ubuntu)

PHP shared session

Server environment

1
2
3
4
5
$ cat /etc/issue
Ubuntu 14.04.5 LTS

$ php -v
PHP 5.6.32-1+ubuntu14.04.1+deb.sury.org+2 (cli)
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×