瀏覽模式: 普通 | 列表

apache強制某路徑使用https方式連線

比方說我的http://ssorc.tw/admin 後台,要登入帳密的地方我需要讓它使用SSL加密連線


就在httpd.conf 設定加入如下設定

<Directory /path/admin>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase   /path/admin
RewriteCond   %{SERVER_PORT}  !^443$
RewriteRule   ^(.*)?$   https ://%{SERVER_NAME}/admin/$1 [L,R]
#                                  https跟://之間我故意空白,因為會讓我文章無法存檔
</IfModule>
</Directory>
標籤: apache https ssl

http://code.google.com/intl/zh-TW/speed/page-speed/docs/module.html

mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.

下載頁面 http://code.google.com/intl/zh-TW/speed/page-speed/download.html
我要用的是 : mod_pagespeed 32-bit .rpm (CentOS/Fedora)

安裝

rpm -ivh mod-pagespeed-beta_current_i386.rpm

套件內容

[閱讀全文]

http://www.webkit.org/perf/sunspider/sunspider.html

進入網頁,點選 Start SunSpider XXX now! 就會開始作測試了

f2blog 怎麼移除首頁及本文的刪除項目

有時後會怕因為滑鼠或滾輪,一個不小心刪除了文章
如下圖所示,就是它

attachments/201101/6384128794.png

所以我想把它隱藏掉
我搜尋了f2blog目錄下的關鍵字 "刪除"
找到 include/language/zh_tw.php中的關鍵 $strDelete="刪除";
我就再去找 $strDelete 有這變數的php檔
找到
include/read.inc.php   # 首頁
include/content.inc.php  # 本文

就是把檔裡面的這整行拿掉即可

<option value="delete"><?php echo $strDelete; ?></option>

以上

標籤: f2blog 刪除

google搜尋新功能? -- 預覽

滑鼠指到紅色圈圈的地方,它會有淺藍色的框框,滑鼠點它,右邊就會開啟預覽功能,底下的連結就會都有,如果再點一次就取消了

attachments/201011/8255639321.png
標籤: google 預覽 搜尋

現在手機上網應用滿普及的了

有個網站(http://detectmobilebrowser.com/)針對是不是透過手機來瀏覽你的網站作了一規則編寫

像 apache 的話就點選藍色 apache 的部份下載它的規則內容套用在自已網站底下即可

這樣子假如你的網站有專門為手機而來的就可以重導它至其頁面了

當然這個網站還有對其它程式也有個別的規則內容,就看怎麼應用它了 

min.us 輕鬆分享你的照片,圖片

只要瀏覽到這個網站 min.us

首頁就會跟你說直接把圖托到它的頁面上
attachments/201010/5201532315.png

再來就可以方便的分享你的圖片了

attachments/201010/2819564337.png