apache proxy配置

本文详细介绍了如何在Apache HTTP服务器中配置SSL/TLS连接,包括使用额外的配置文件来支持SSL连接,设置SSL随机种子,处理不遵循开放标准的浏览器,以及SSL证书的加载和配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 
Hpptd.conf
 
# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
Include conf/extra/ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

# Deal with user agents that deliberately violate open standards
#
<IfModule setenvif_module>
BrowserMatch "MSIE 10.0;" bad_DNT
</IfModule>
<IfModule headers_module>
RequestHeader unset DNT env=bad_DNT
</IfModule>

Timeout 600
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 15

 

Hpptd-ssl.conf
 

######################################### ########     ssl config    ############## #########################################

 

LoadModule ssl_module modules/mod_ssl.so SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLPassPhraseDialog  builtin SSLSessionCache        "shmcb:/opt/apache2/logs/ssl_scache(512000)" SSLSessionCacheTimeout  300 <VirtualHost *:443>         #DocumentRoot "/opt/apache2/htdocs/ssl"         ServerName www.xxxx.com

        #ServerName 11.12.28.22:443         ServerAdmin a@a.com

        ErrorLog "/opt/apache2/logs/ssl_error_log"         TransferLog "/opt/apache2/logs/ssl_access_log"         SSLCertificateFile "/opt/apache2/conf/server.crt"         SSLCertificateKeyFile "/opt/apache2/conf/server.key" </VirtualHost>

 

 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值