為了更好的服務瑞穗在地鄉親,建立這個網站,旨在分享在地資訊,包括空拍照片、景點介紹、民宿介紹、政府活動資訊、交通事故、農產品供需等在地資訊。
- 在name.com 購買 shuiwei.org 花費$ 12.99 USD;
- 使用 http://www.alpharacks.com/ 的$6.99/mo 的 shared hosting;
- 安裝wordpress;
- 自動安裝SSL , https://www.shuiwei.org 可訪問;
瑞穗, 古早名叫水尾,因秀姑巒溪、清水溪、塔比拉溪、馬蘭鉤溪、紅葉溪等大小河流,都流經此地匯合而得「水尾」地名。
日治時期因水尾日語發音與瑞穗相近,更名為瑞穗。「瑞穗」是日本古代旧国名。
2018年1月27日
換到google cloud台灣機房,訪問速度極大提高。
移主機到Google Cloud Platform,失去了alpharacks的autoSSL,先手工移動證書過來。
把各證書保存到:
/etc/apache2/sites-enabled/shuiwei_bundle.crt
/etc/apache2/sites-enabled/shuiwei.crt
/etc/apache2/sites-enabled/shuiwei.key
然後
sudo a2ensite default-ssl sudo a2enmod ssl
sudo vi /etc/apache2/sites-enabled/default-ssl.conf
把 wordpress.conf的內容複製到 default-ssl.conf裡,但要加上以下內容:
SSLEngine on SSLCertificateFile /etc/apache2/sites-enabled/shuiwei.crt SSLCertificateKeyFile /etc/apache2/sites-enabled/shuiwei.key SSLCertificateChainFile /etc/apache2/sites-enabled/shuiwei_bundle.crt
然後重新載入
sudo service apache2 reload
這樣https://www.shuiwei.org/ 就能訪問了.
改用Let’s Encrypt自動更新安全證書:
sudo certbot --authenticator standalone --installer apache -d www.shuiwei.org --pre-hook "sudo systemctl stop apache2" --post-hook "sudo systemctl start apache2"
更新Let’s Encrypt报错:Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA
參考:
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-debian-8
任何人都可以註冊,並提供在地相關資訊哦