让apache支持ssl
环境:redhat9
apache2.0.54
apache编译进的模块
# bin/httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
创建一个rsa将它们copy目录下
查看虚拟主机设置
# ../bin/apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 dummy-host.example.com (/usr/local/apache22/conf/extra/httpd-vhosts.conf:27)
*:81 dummy-host2.example.com (/usr/local/apache22/conf/extra/httpd-vhosts.conf:36)
_default_:443 www.example.com (/usr/local/apache22/conf/extra/httpd-ssl.conf:74)
Syntax OK
端口是否被监听netstat -an|grep 443
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
页:
[1]