世界上有一个神奇的国度,在那里,所有的优秀网站都上不了,连 http://python.org/download 也打不开,很多使用黑莓的兄弟除了opera别无他法翻墙,不过,幸运地是我们可以自己建一个在线代理网站进行反向代理,打开你的手机,输入网址就可以看了。
依照wiki里给定的方法来做,记住要先装上Python,http://python.org/ftp/python/3.1.2/python-3.1.2.msi (装2.6.4版本也是可以的,不过有敏感词)。
我这里只说一下在本地上传 "Mirror"主程序时出错的情况,也许你会跟我一样得到以下错误:
Application: sky-fire; version: secureable.
Scanning files on local disk.
Initiating update.
Could not guess mimetype for static/favicon.ico. Using application/octet-stream
.
Cloning 8 static files.
Cloning 5 application files.
Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Will check again in 2 seconds.
Checking if new version is ready to serve.
Will check again in 4 seconds.
Checking if new version is ready to serve.
Will check again in 8 seconds.
Checking if new version is ready to serve.
Will check again in 16 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: "EntryPoint"
ancestor: false
Property {
name: "last_updated"
direction: 2
}
is not necessary, since single-property indices are built in. Please remove it f
rom your index file and upgrade to the latest version of the SDK, if you haven't
already.
--- end server output ---
Your app was updated, but there was an error updating your indexes. Please retry
later with appcfg.py update_indexes.
C:\Program Files\Google\google_appengine>
其实很简单,可能是由于GAE版本升级过了,所以导致了在index.yaml中存在 错误,只要打开这个文件,只保留第一行就可以了。然后再上传,就会提示你成功。
然后 打开你申请的 https://aaaaaaa.appspot.com,就可以打开你想看的网站,但是目前程序只能代理一般的网页,session,视听或者下载等等是无法代理的。
评论
发表评论
读过之后是不是文思泉涌了?,快快让大家拜读一下你的高见吧~~~