在這個言必談 Web 2.0 的時代,不管是新推出的網站,或是舊有網站的改版,介面一定是漂漂亮亮的、粉粉的、顏色鮮明的,版面設計最好是要有圓角,logo 裡的字一定要帶有倒影,最後再蓋上 “beta” 這個帥氣到不行的 Web 2.0 精典 (或精神?) 標緻。 因應這個朝流,網路上也開始出現了一些「如何設計才能更符合 Web 2.0」的教學文章,諸如配色、樣式、按鈕之類的,或是甚至直接幫你在線上快速產生一個有 Web 2.0 味道的 logo 或是網站名稱。 那麼下面就把我之前有接觸過的網站或是文章整理出一個「不完全」列表:
Web 2.0 Company Name Generator 除了要有漂亮的介面之外,網站當然也要取一個有 Web2.0 味道的名稱。按下網頁的 Generate Name! 扭,便會以亂數拼出一個名稱,當然程式裡的規則是有設計過的,所以拼出來的名稱並不會讓人覺得無厘頭,有一些反而還蠻有質感的呢。除此之外還提供了檢查名稱是否已經被人家註冊為網址的功能。
常用的客戶端請求錯誤返回代碼: 401 Authorization Required 403 Forbidden 404 Not Found 405 Method Not Allowed 408 Request Timed Out 411 Content Length Required 412 Precondition Failed 413 Request Entity Too Long 414 Request URI Too Long 415 Unsupported Media Type 常見的服務器錯誤返回代碼: 500 Internal Server Error
Official document: ErrorDocument Directive ErrorDocument code document 例子
(注意之後內容如果出現的雙引號需要轉義為 \」) 常見HTTP狀態碼 Successful Client Requests 200 OK 201 Created 202 Accepted 203 Non-Authorative Information 204 No Content 205 Reset Content 206 Partial Content Client Request Redirected 300 Multiple Choices 301 Moved Permanently 302 Moved Temporarily 303 See Other 304 Not Modified 305 Use Proxy Client Request Errors 400 Bad Request 401 Authorization Required 402 Payment Required (not used yet) 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable (encoding) 407 Proxy Authentication Required 408 Request Timed Out 409 Conflicting Request 410 Gone 411 Content Length Required 412 Precondition Failed 413 Request Entity Too Long 414 Request URI Too Long 415 Unsupported Media Type Server Errors 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 505 HTTP Version Not Supported
3. Password Protection 密碼保護
more..
Official document: Authentication, Authorization and Access Control 假設密碼文件為.htpasswd AuthUserFile /usr/local/safedir/.htpasswd (這裡必須使用全路徑名) AuthName EnterPassword AuthType Basic 兩種常見驗證方式: Require user windix (僅允許用戶windix登陸) Require valid-user (所有合法用戶都可登陸) Tip: 如何生成密碼文件 使用htpasswd命令(apache自帶) 第一次生成需要創建密碼文件 htpasswd -c .htpasswd user1 之後增加新用戶 htpasswd .htpasswd user2
4. Enabling SSI Via htaccess 通過htaccess允許SSI(Server Side Including)功能
Leave your greetings here.