httpd-vhosts.confNameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
admin@blablabla.zp.ua ServerName stats.blablabla.zp.ua
ServerAlias stats.blablabla
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog "/var/log/httpd/stats.blablabla-error.log"
CustomLog "/var/log/httpd/stars.blablabla-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@blablabla.zp.ua ServerName admin.stats.blablabla
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog "/var/log/httpd/admin.stats.blablabla-error.log"
CustomLog "/var/log/httpd/admin.stats.blablabla-access.log" common
</VirtualHost>
<Directory "/usr/local/www/apache22/cgi-bin/">
SSLRequireSSL
</Directory>
httpd-ssl.confListen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex "file:/var/run/ssl_mutex"
NameVirtualHost *:443
<VirtualHost *:443>
DocumentRoot "/usr/local/www/apache22/data"
ServerName stats.blablabla
ServerAlias stats.blablabla.zp.ua
ServerAdmin
admin@blablabla.zp.uaErrorLog "/var/log/httpd/ssl-stats.blablabla-error.log"
TransferLog "/var/log/httpd/ssl-stats.blablabla-access.log"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "/usr/local/etc/apache22/server.crt"
SSLCertificateKeyFile "/usr/local/etc/apache22/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
ErrorDocument 404 "/cgi-bin/stat.pl"
DirectoryIndex "/cgi-bin/stat.pl"
</IfModule>
<IfModule !alias_module>
DirectoryIndex index.html
</IfModule>
<Directory "/usr/local/www/apache22/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/var/log/httpd/ssl-stats.blablabla-request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "/usr/local/www/apache22/data"
ServerName admin.blablabla.starnet
ServerAdmin
admin@blablabla.zp.ua ErrorLog "/var/log/httpd/ssl-admin.blablabla.starnet-error.log"
TransferLog "/var/log/httpd/ssl-admin.blablabla.starnet-access.log"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "/usr/local/etc/apache22/server.crt"
SSLCertificateKeyFile "/usr/local/etc/apache22/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
ErrorDocument 404 "/cgi-bin/adm/adm.pl"
DirectoryIndex "/cgi-bin/adm/adm.pl"
</IfModule>
<IfModule !alias_module>
DirectoryIndex index.html
</IfModule>
<Directory "/usr/local/www/apache22/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/var/log/httpd/ssl-stats.blablabla-request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>