Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Tips / Hosting

Hosting

HTTPS

supervisord.conf papavisor HTTPS PLIP LetsEncrypt CloudFlare 使用經驗 Rewriting URLs to HTTPS Netlify

2015 公有雲的 VM 比佔從 2% 上升到 6%,成長快速但比重還不大。

Serverless Architecture Pros and Cons

Amazon Web Services

AWS Free Tier: 可用 EC2, S3, RDS, Lambda, QuickSight 和 Eligible Software (分 Free 和 Paid Software),如果沒超過限額,可免費十二個月,稱為 12 Month Introductory Period。EC2 Instance Type 分成 General Purpose, Compute Optimized, Memory Optimized 類型,各自又有子項,硬體規格稍有不同。

2015/05 使用心得: 除 Dropbox 外,從 Flickr, Picasa, Facebook 利用 EC2 + cURL 取得相片檔案再轉存到 S3 大概 1秒,相同 Region 的資料互換不用錢。留意 micro 機器好像沒有 /mnt 方便建立 AMI。選擇 AMI 範例

Azure

入門說明: 包括 Visual Studio 整合示範,使用 YOURNAME.azurewebsites.net 網址。

移至 AWS 的經驗

Heroku

成功範例 heroku buildpack heroku-buildpack-plone github submodule init failed heroku blog Command Line Tool rename and update git remotes

$ heroku --version
$ heroku login
$ heroku git:clone -a myapp

One of the challenges of Heroku is its ephemeral filesystem, this usually means that Plone's filesystem Data.fs disappears on Heroku restarts/rebuilds. The Plone buildpack solves this by using Relstorage on Postgresql instead of Filesystem storage.

Cloud9 IDE 注意: 要使用 sudo apt-get install python-virtualenv 來安裝

Bitnami: Ubuntu 14.04.1 + Plone 4.3.6

WebFaction: 256MB RAM for $5.50/month, 512MB RAM for $12.50/month

pancake.io for $5/month

Plesk Apache Rewrite Rule Config Needs Specific Folder Location

Moving Plone Site From AWS To WebFaction

http://pypi.python.org/pypi/collective.hostout

http://pypi.python.org/pypi/collective.recipe.supervisor

Varnish

Ubuntu 14.04 使用 3 版,Ubuntu 15.04 使用 4 版。

Varnish -> Zopes for HTTP. And Nginx / Apache -> Varnish -> Zopes for HTTPS

Plone Cloud Hosting

Nitrous.io

Warming Varnish Cache VarnishReplay

$ ssh www.varnish-cache.org varnishlog -w - | varnishreplay -a localhost:6081 -r -

GSSAPIAuthentication UseDNS 登入時會產生 DNS 查詢,關閉這兩個設定,可加速回應時間。