Welcome! Log In Create A New Profile

Advanced

Re: proxy to external network

冉兵
October 01, 2009 08:46PM
It works of course!

Thanks Maxim.

Bran


--------------------------------------------------
From: "Maxim Dounin" <mdounin@mdounin.ru>
Sent: Friday, October 02, 2009 12:55 AM
To: <nginx@sysoev.ru>
Subject: Re: proxy to external network

> Hello!
>
> On Thu, Oct 01, 2009 at 08:43:07PM +0800, 冉兵 wrote:
>
>> Hi,
>>
>> I have this need to allow our internal staff to access google spreadsheet
>> form. One of our departments does not have any internet access because of
>> our IT policy. But we'd like to allow then to access an online form
>> created with Google doc.
>>
>> The form is here:
>> http://spreadsheets.google.com/viewform?hl=en&formkey=dDVrYXZJaGkxRVZucFNNeWhwckFoZ0E6MA..
>>
>>
>> I put this in our config on a server on local network.
>>
>> location ~ /viewform {
>> proxy_pass http://74.125.153.102; # the IP of
>> spreadsheets.google.com
>>
>> proxy_redirect on;
>> proxy_set_header Host $host:$server_port;
>
> This will send "Host: your-internal-hostname:your-internal-server-port"
> to Google. Probably it's not what they expect, try
>
> proxy_set_header Host spreadsheets.google.com;
>
> instead.
>
> Maxim Dounin
>
>> proxy_set_header X-Real-IP $remote_addr;
>> proxy_set_header X-Forwarded-For
>> $proxy_add_x_forwarded_for;
>> client_max_body_size 50m;
>> client_body_buffer_size 256k;
>> proxy_connect_timeout 30;
>> proxy_send_timeout 30;
>> proxy_read_timeout 60;
>> proxy_buffer_size 16k;
>> proxy_buffers 4 32k;
>> proxy_busy_buffers_size 64k;
>> proxy_temp_file_write_size 64k;
>> }
>>
>> No matter what I do I always get 404. Can anyone give me a tip please ?
>>
>> Thanks
>>
>> Bran
>>
>>
>
>
Subject Author Posted

proxy to external network

冉兵 October 01, 2009 08:50AM

Re: proxy to external network

Maxim Dounin October 01, 2009 01:04PM

Re: proxy to external network

冉兵 October 01, 2009 08:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready