service:apache
差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
| service:apache [2007/11/08 14:39] – wenpei | service:apache [2011/06/20 17:29] (目前版本) – GoAccess wenpei | ||
|---|---|---|---|
| 行 10: | 行 10: | ||
| # openssl req $@ -new -x509 -days 365 -nodes -out / | # openssl req $@ -new -x509 -days 365 -nodes -out / | ||
| # chmod 600 / | # chmod 600 / | ||
| + | |||
| + | < | ||
| + | Country Name (2 letter code) [AU]:TW | ||
| + | State or Province Name (full name) [Some-State]: | ||
| + | Locality Name (eg, city) []:Taoyuan | ||
| + | Organization Name (eg, company) [Internet Widgits Pty Ltd]:SARS TW | ||
| + | Organizational Unit Name (eg, section) []:wiki | ||
| + | Common Name (eg, YOUR name) []: | ||
| + | Email Address []: | ||
| + | </ | ||
| ==== 開啟port ==== | ==== 開啟port ==== | ||
| - | 編輯 | + | 確認 |
| - | Listen 80 | + | < |
| - | Listen 443 | + | Listen 80 |
| + | |||
| + | < | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| ==== 修改 / | ==== 修改 / | ||
| 行 111: | 行 126: | ||
| 需要啟動apache2 | 需要啟動apache2 | ||
| + | ===== 自動導向 https ===== | ||
| + | RewriteEngine On | ||
| + | RewriteCond %{SERVER_PORT} !^443$ | ||
| + | RewriteRule ^(.*)$ https:// | ||
| + | |||
| + | ====== Log 分析 ====== | ||
| + | ===== GoAccess===== | ||
| + | http:// | ||
| + | |||
| + | http:// | ||
| ====== 使用Apache自動判別語系 ====== | ====== 使用Apache自動判別語系 ====== | ||
service/apache.1194503943.txt.gz · 上一次變更: 由 wenpei
