沸点大火-blog

人生杂烩

HTTP To HTTPS Redirect 301 (F5 iRules)

Description
Redirects all traffic to same hostname, same URI over https by issuing a redirect with status 301 (Moved Permanently). You can check the status code to a 302 to issue a non-cacheable redirect.

Apply to HTTP virtual server to redirect all traffic to same hostname (stripping port if it exists), same URI over HTTPS. (Do not apply to shared/wildcard virtual server responding to HTTPS traffic, or infinite redirect will occur. Create separate virtual servers on port 80 and port 443, and apply this iRule ONLY to the port 80 HTTP-only virtual server. No iRule is needed on the port 443 HTTPS virtual server.) (更多…)


如何手动升级ownCloud到8.2.9

再精简成脚本和浏览器访问,脚本收集如下:

rsync -a xdxp.cn/ xdxp.cn_bak`date +”%Y%m%d”`/
wget https://download.owncloud.org/community/owncloud-8.2.9.tar.bz2
mkdir owncloud_latest
rm -Rf owncloud_latest/*
tar -C owncloud_latest -xjf owncloud-8.2.9.tar.bz2
rsync –inplace -rtv owncloud_latest/owncloud/. xdxp.cn/.
chown -R www:www xdxp.cn
rm -Rf owncloud-8.2.9.tar.bz2
rm -Rf /data/htdocs/owncloud_latest/owncloud
============================================

不用删除啥文件,一步一步按下面操作就是了:
第一大步:
rsync -a xdxp.cn/ xdxp.cn_bak`date +”%Y%m%d”`/
wget https://download.owncloud.org/community/owncloud-8.2.5.tar.bz2
mkdir owncloud_latest
文件夹存在后,则: (更多…)