自己建一個Https反向在線代理網站
世界上有一個神奇的國度,在那裡,所有的優秀網站都上不了,連 https://python.org/download 也打不開,很多使用黑莓的兄弟除了opera別無他法翻牆,不過,幸運地是我們可以自己建一個在線代理網站進行反向代理,打開你的手機,輸入網址就可以看了。
請各位移步:https://code.google.com/p/mirrorrr/
依照wiki里給定的方法來做,記住要先裝上Python,
https://python.org/ftp/python/3.1.2/python-3.1.2.msi
(裝2.6.4版本也是可以的,不過有敏感詞)。
我這裡只說一下在本地上傳 "Mirror"主程式時出錯的情況,也許你會跟我一樣得到以下錯誤:
Application: sky-fire; version: secureable.
Server: appengine.google.com.
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,視聽或者下載等等是無法代理的。
原文標題:自己建一個Https反向在線代理網站 - 美博園
美博園文章均為「原創 - 首發」,請尊重辛勞撰寫,轉載請以上面完整鏈接註明來源!
軟體著作權歸原作者!個別轉載文,本站會註明為轉載。
網 友 留 言
3條評論 in “自己建一個Https反向在線代理網站”這裡是你留言評論的地方
現在就算搭建好,也要代理才能訪問。
@百匯部落格:
了解,謝謝反饋。