配置apache2 https
2017-02-16 19:58
127 查看
版本: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的设置
很简单
加上下面的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的设置
相关文章推荐
- apache2 以及https证书配置
- 腾讯云 Ubuntu+Apache2配置https和重定向
- apache2 tomcat https配置-被忽悠进了CentOS 6
- ubuntu环境下apache2配置买的https证书
- Linux Mint 下APACHE2 HTTPS安装和配置 wifidog https通信
- apache2 以及https证书配置
- 关于整合php5,apache2.x,mysql中出现"无法载入 mysql 扩展,请检查 PHP 配置"的解决方法
- subversion + apache2 作为版本控制服务器的配置(By Robinvane Suen)
- 在Tomcat中配置使用https的过程
- php环境配置 php5 mysql5 apache2 phpmyadmin安装与配置
- php环境配置 php5 MySQL5 apache2 phpmyadmin安装与配置图文教程
- Ubuntu 5.10 下 Apache2 SSL 的配置方法
- debian 下的 apache2 + ssl 配置方法
- Apache2 配置--磨难--成功--开心 之记载
- 1Linux下jdk、tomcat和apache2的安装配置
- php环境配置 php5 mysql5 apache2 phpmyadmin安装与配置
- Windows下,Tomcat5.5 + Apache2 配置整合心得
- 在Linux下Fastcgi的Apache2上的安装配置
- [参考文档]Apache2配置文件参考
- 在Tomcat5.0.28中配置https服务