使用者工具

網站工具


service:apache

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
service:apache [2007/11/08 14:39]
wenpei
service:apache [2011/06/20 17:29] (目前版本)
wenpei GoAccess
行 10: 行 10:
   # openssl req $@ -new -x509 -days 365 -nodes -out /​etc/​apache2/​apache.pem -keyout /​etc/​apache2/​apache.pem   # openssl req $@ -new -x509 -days 365 -nodes -out /​etc/​apache2/​apache.pem -keyout /​etc/​apache2/​apache.pem
   # chmod 600 /​etc/​apache2/​apache.pem   # chmod 600 /​etc/​apache2/​apache.pem
 +
 +<​code>​
 +Country Name (2 letter code) [AU]:TW
 +State or Province Name (full name) [Some-State]:​Taiwan
 +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) []:​wiki.sars.tw
 +Email Address []:​webmaster@localhost
 +</​code>​
  
 ==== 開啟port ==== ==== 開啟port ====
-編輯 ​/​etc/​apache2/​ports.conf 如下 +確認 ​/​etc/​apache2/​ports.conf ​內容如下: 
-  Listen 80 +<​code>​ 
-  Listen 443+Listen 80 
 + 
 +<​IfModule mod_ssl.c>​ 
 +    ​Listen 443 
 +</​IfModule>​ 
 +</​code>​
  
 ==== 修改 /​etc/​apache2/​sites-available/​default ==== ==== 修改 /​etc/​apache2/​sites-available/​default ====
行 111: 行 126:
 需要啟動apache2 需要啟動apache2
  
 +===== 自動導向 https =====
 +  RewriteEngine On
 +  RewriteCond %{SERVER_PORT} !^443$
 +  RewriteRule ^(.*)$ https://​%{SERVER_NAME}/​~somewhere/​$1 [L,R]
 +
 +====== Log 分析 ======
 +===== GoAccess=====
 +http://​goaccess.prosoftcorp.com/​
 +
 +http://​www.openfoundry.org/​index.php?​option=com_content&​task=view&​id=8228&​Itemid=4
  
 ====== 使用Apache自動判別語系 ====== ====== 使用Apache自動判別語系 ======
service/apache.1194503943.txt.gz · 上一次變更: 2007/11/08 14:39 由 wenpei