Pejman Moghadam / Redhat

Redhat 8.0 - HTTPS - Apache Server

Public domain


mod_ssl install

rpm -ivh mod_ssl-2.0.40-8.i386.rpm

reload config files

service httpd reload

test with browser on port 443 or

netstat -tunap
httpd -D DUMP_VHOSTS -t

ssl.conf

LoadModule ssl_module modules/mod_ssl.so
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/var/cache/mod_ssl/scache
SSLSessionCacheTimeout 300
SSLMutex file:logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
#<VirtualHost _default_:443>
# DocumentRoot "/var/www/html"
# ServerName new.host.name:443
# ServerAdmin you@your.address # ErrorLog logs/ssl_error_log
# TransferLog logs/ssl_access_log
# SSLEngine on
# SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
# SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
# SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
# <Files ~ "\.(cgi|shtml|phtml|php3?)$">
# SSLOptions +StdEnvVars
# </Files>
# <Directory "/var/www/cgi-bin">
# SSLOptions +StdEnvVars
# </Directory>
# SetEnvIf User-Agent ".*MSIE.*" \
# nokeepalive ssl-unclean-shutdown \
# downgrade-1.0 force-response-1.0
# CustomLog logs/ssl_request_log \
# "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
#</VirtualHost>
<VirtualHost 172.16.10.2:443>
DocumentRoot /var/www/SSL
ServerName www.test.com
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE [12].*" nokeepalive ssl-unclean-shutdown
</VirtualHost>

BY: Pejman Moghadam
TAG: https, apache
DATE: 2007-11-27 14:29:03


Pejman Moghadam / Redhat [ TXT ]