Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. location ~ .php$ {
  2.  
  3. # location / {
  4. #fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  5. #include snippets/fastcgi-php.conf;
  6.  
  7. proxy_pass http://1.2.3.4:8080$request_uri;
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Real-IP $remote_addr;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Forwarded-Proto $scheme;
  12. proxy_set_header GEOIP_COUNTRY_CODE $geoip_country_code;
  13. proxy_set_header GEOIP_COUNTRY_CODE3 $geoip_country_code3;
  14. proxy_set_header GEOIP_COUNTRY_NAME $geoip_country_name;
  15.  
  16. proxy_set_header GEOIP_CITY_COUNTRY_CODE $geoip_city_country_code;
  17. proxy_set_header GEOIP_CITY_COUNTRY_CODE3 $geoip_city_country_code3;
  18. proxy_set_header GEOIP_CITY_COUNTRY_NAME $geoip_city_country_name;
  19. proxy_set_header GEOIP_REGION $geoip_region;
  20. proxy_set_header GEOIP_CITY $geoip_city;
  21. proxy_set_header GEOIP_POSTAL_CODE $geoip_postal_code;
  22. proxy_set_header GEOIP_CITY_CONTINENT_CODE $geoip_city_continent_code;
  23. proxy_set_header GEOIP_LATITUDE $geoip_latitude;
  24. proxy_set_header GEOIP_LONGITUDE $geoip_longitude;
  25. include /etc/nginx/proxy_params;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement