{"id":428,"date":"2013-09-27T22:56:22","date_gmt":"2013-09-27T14:56:22","guid":{"rendered":"http:\/\/blog.361.xxx\/?p=428"},"modified":"2013-09-27T22:56:22","modified_gmt":"2013-09-27T14:56:22","slug":"%e6%9b%b4%e7%ae%80%e5%8d%95%e7%9a%84opera-mini-server-mirror","status":"publish","type":"post","link":"http:\/\/www.cyups.com\/?p=428","title":{"rendered":"\u66f4\u7b80\u5355\u7684Opera Mini Server Mirror"},"content":{"rendered":"<p>\u4e0a\u6b21\u7528golang\u5199\u4e86\u4e00\u4e2a<a href=\"http:\/\/ichon.me\/2013\/02\/06\/opm-server-golang.html\" target=\"_blank\"  rel=\"nofollow\" >Opera Mini\u4ee3\u7406\u670d\u52a1\u5668<\/a>\uff0c\u5199\u5b8c\u4e4b\u540e\u603b\u89c9\u5f97\u8fd8\u662f\u9ebb\u70e6\u4e86\u70b9\uff0c\u60f3\u6765\u60f3\u53bb\uff0c\u7a81\u7136\u604d\u7136\u5927\u609f\uff0c\u6211\u8981\u7684\u4e0d\u5c31\u662f\u53cd\uff01\u5411\uff01\u4ee3\uff01\u7406\uff01\u561b...\u7528nginx\u4e0d\u5c31\u53ef\u4ee5\u4e86\u4e48\uff0c\u54ea\u9700\u8981\u90a3\u4e48\u9ebb\u70e6...<\/p>\n<h2>HTTP\u4ee3\u7406\u90e8\u5206<\/h2>\n<p>\u5728Nginx\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0<\/p>\n<pre>server\n{\nlisten  \u00a0 \u00a0 8080;\nserver_name opera.example.com;\nlocation \/\n{\nproxy_pass  http:\/\/server4.operamini.com\/;\nproxy_redirect  off;\nproxy_set_header    X-Real-IP   $remote_addr;\nproxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;\n}\n}<\/pre>\n<p>\u91cd\u542fNginx\u5373\u53ef<\/p>\n<h2>Socket\u4ee3\u7406\u90e8\u5206<\/h2>\n<p>\u8bbe\u7f6eiptables\u5c31\u597d<\/p>\n<pre>iptables -t nat -A PREROUTING -p tcp -m tcp --dport 9003 -j DNAT --to-destination 141.0.11.253:1080\niptables -t nat -A POSTROUTING -p tcp -m tcp --dport 9003 -j SNAT --to-source YOUR-SERVER-IP<\/pre>\n<h2>\u4fee\u6539operamini\u670d\u52a1\u5668\u8bbe\u7f6e<\/h2>\n<p>HTTP\u4ee3\u7406 opera.exmaple.com:8080<br \/>\nSocket\u4ee3\u7406 opera.example.com:9003<br \/>\n\u5177\u4f53\u600e\u4e48\u4fee\u6539\u6211\u5c31\u4e0d\u8d58\u8ff0\u4e86<a href=\"http:\/\/ichon.me\/2013\/02\/06\/opm-server-golang.html\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/ichon.me\/2013\/02\/06\/opm-server-golang.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u6b21\u7528golang\u5199\u4e86\u4e00\u4e2aOpera Mini\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5199\u5b8c\u4e4b\u540e\u603b\u89c9\u5f97\u8fd8\u662f\u9ebb\u70e6\u4e86\u70b9\uff0c\u60f3\u6765\u60f3\u53bb\uff0c\u7a81\u7136\u604d\u7136\u5927\u609f\uff0c\u6211\u8981\u7684\u4e0d\u5c31\u662f\u53cd\uff01\u5411\uff01 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[14],"tags":[194],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-pcsoft","tag-opera-nginx"],"_links":{"self":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=428"}],"version-history":[{"count":0,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/428\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}