配置apache2 https

版本:Apache/2.4.23
很簡單

加上下面的link文件就可以了,分別在mods-available和sites-available(默認沒有下面的link文件)

lrwxrwxrwx 1 root root   40 Feb 16 19:29 000-default-ssl -> /etc/apache2/sites-available/default-ssl
lrwxrwxrwx 1 root root   45 Feb 16 19:32 000-default-ssl.conf -> /etc/apache2/sites-available/default-ssl.conf
lrwxrwxrwx 1 root root   26 Feb 16 18:17 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root   26 Feb 16 18:17 ssl.load -> ../mods-available/ssl.load


注:
--啓動錯誤ssl.conf,註釋了下面3行
 38     #   Inter-Process Session Cache:
 39     #   Configure the SSL Session Cache: First the mechanism 
 40     #   to use and second the expiring timeout (in seconds).
 41     #   (The mechanism dbm has known memory leaks and should not be used).
 42     #SSLSessionCache         dbm:${APACHE_RUN_DIR}/ssl_scache
 43     #SSLSessionCache        shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
 44     #SSLSessionCacheTimeout  300

--生成證書,參見下面,這個apach2的版本已經不需要這個配置了,自己生成也沒有問題,使用原來的可以(default-ssl.conf)
http://www.cnblogs.com/best-jobs/p/3298258.html

--遇到問題可以查看apache2的log文件,/var/log/apache2,也許會找到線索

--注意DocumentRoot的設置
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章