這是一個簡單的配置ownCloud的教程。
安裝準備
先安裝好伺服器環境,我使用的是LAMP。
文件下載
ownCloud
配置ownCloud
解壓縮,安裝數據庫略。
在 .htaccess 內
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
下添加我們熟悉的代碼
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
RewriteEngine on
RewriteCond %{HTTPS} !^on$
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=302]
</IfModule>