Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location ~ .php$ {
- # location / {
- #fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- #include snippets/fastcgi-php.conf;
- proxy_pass http://1.2.3.4:8080$request_uri;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header GEOIP_COUNTRY_CODE $geoip_country_code;
- proxy_set_header GEOIP_COUNTRY_CODE3 $geoip_country_code3;
- proxy_set_header GEOIP_COUNTRY_NAME $geoip_country_name;
- proxy_set_header GEOIP_CITY_COUNTRY_CODE $geoip_city_country_code;
- proxy_set_header GEOIP_CITY_COUNTRY_CODE3 $geoip_city_country_code3;
- proxy_set_header GEOIP_CITY_COUNTRY_NAME $geoip_city_country_name;
- proxy_set_header GEOIP_REGION $geoip_region;
- proxy_set_header GEOIP_CITY $geoip_city;
- proxy_set_header GEOIP_POSTAL_CODE $geoip_postal_code;
- proxy_set_header GEOIP_CITY_CONTINENT_CODE $geoip_city_continent_code;
- proxy_set_header GEOIP_LATITUDE $geoip_latitude;
- proxy_set_header GEOIP_LONGITUDE $geoip_longitude;
- include /etc/nginx/proxy_params;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement