Configuring GAppProxy tutorial on Linux system

  
 

Although switching to the Linux system, but GAppProxy so useful things can not be dropped, so I began to study how to use GAppProxy under Linux.

It’s actually quite simple. FetchServer has been set up during the summer vacation. Now you only need to configure the client.

There was always a GUI client provided by the official under Windows
, which is especially simple to use, just enter the URL of FetchServer.

And now you have to edit the configuration file under linux, first download the Python version of GAppProxy client http://gappproxy.googlecode.com/files/localproxy-2.0.0.tar.gz< Br>

Modify the configuration file proxy.conf

The default configuration file is like this

# GAppProxy configuration# listen_portlisten_port = 8000# local_proxy#local_proxy = host:port# If Local proxy needs authentication:#local_proxy = user:passwd@host:port# fetch server#fetch_server = http://127.0.0.1:8080/fetch.py
#fetch_server = http://Your-fetch-server.appspot.com/fetch.py

The default is all comments, just remove the # in front of listen_port and fetch_server, and change the host to 127.0.0.1, the port Changed to 8000, change your-fetch-server to the ID of your app

(When I configured it, I removed the # in front of local_proxy several times, so that the agent is always unsuccessful, sweat) The modified configuration file should look like this

#GAppProxy configuration# listen_portlisten_port = 80 00# local_proxy#local_proxy = 127.0.0.1:8080# If local proxy needs authentication:#local_proxy = user:passwd@host:port# fetch server#fetch_server = http://127.0.0.1:8080/fetch.py 
fetch_server = http://fetchserver.appspot.com/fetch.py

After the modification is complete, the command line goes to the directory where localproxy is located, execute python proxy.py, and you can see this. Picture

------------------------------------------ --HTTPS Enabled: YESDirect Fetch : YESListen Addr : 127.0.0.1:8000Local Proxy :Fetch Server : http://fetchserver.appspot.com/fetch.py
---------- ----------------------------------

At this point, just set the browser's proxy to 127.0. 01:8000, you can enjoy GAppProxy.

But after I open the browser, everything is fine, but all the web pages are open, why is this?

After checking it, I found the problem. I used GAppProxy1.0 beta when I set up FetchServer, and the client I am using is based on GAppProxy2.0...

Know The problem is, there is only one solution: upload a new FetchServer file to GAE

So, download the Google App Engine SDK, download FetchSever2.0, put the FetchServer2.0 folder into the SDK directory, modify The application ID in the app.yaml file

Then execute python appcfg.py update fetchserver-2.0.0 on the command line, fill in the email and password according to the prompts, wait a while to upload successfully, in fact, the command line upload Not too difficult than GUI!

This time there is no problem when I try to use GAppProxy again!

When checking the information on Google, I found that someone wrote a GAppProxy client under Linux. The download address http://www.wuala.com/jiechic/software/proxy/is quite simple and can achieve the minimum. Turned to the tray, functionally close to the GAppProxy client under Windows

Copyright © Windows knowledge All Rights Reserved