2015年9月2日 星期三

Apache 常用 Command Line 指令

Apache 常用 Command Line 指令

url 檢查, 以 http://localhost 為例:
curl http://localhost     # 取得回傳內容
curl -I http://locahost   # 取得回傳 header 資料
curl -k https://localhost # 跳過 SSL 檢查, 讓使用 self-signed 的 https 網站也可回傳資料

$ apache2ctl configtest   # 檢查 apache2 的 config 設定是否正確
$ sudo a2enmod rewrite    # 啟用功能模組: rewrite 
$ sudo a2dissmod rewrite  # 禁用功能模組: rewrite 

沒有留言:

張貼留言