GAE
自己在用的
1.server{ 2. 3.listen ip:80; 4.server_name freedodo.com; #本空间要绑定的域名 5.location / { 6.proxy_redirect off; 7.proxy_pass http://your-app-id.appspot.com; #要反向的域名 GAE地址 8.proxy_set_header X-Real-IP $remote_addr; 9.} 10.}
网上 的
1. server 2. { 3. listen ip:80; 4. server_name google.ha97.com; 5. 6. location / { 7. proxy_pass http://www.google.com/; 8. proxy_redirect off; 9. proxy_set_header X-Real-IP $remote_addr; 10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 11. } 12. }