[linux]Create multi virtual host in apache

2016-12-12 写技术

In http.conf or its sub config file:

Must define like this:

NameVirtualHost *:443

<VirtualHost *:443>
DocumentRoot "/alidata/www/log"
ServerName log.anycle.com:443
ServerAdmin you@example.com
ErrorLog "/alidata/server/httpd/logs/error_log"
TransferLog "/alidata/server/httpd/logs/access_log"
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

SSLCertificateFile "/alidata/server/httpd/conf/server.crt"
SSLCertificateKeyFile "/alidata/server/httpd/conf/server.key"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/alidata/server/httpd/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-5]" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog "/alidata/server/httpd/logs/ssl_request_log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

标签: linux

评论:

terwixonse
2019-05-18 03:54
I am from Slovenia. I can help with build this forum. Thanks for approved.

Jaz sem Slovenka. Lahko pomagam pri razvoju foruma.
terwixonse
2019-05-12 18:38
Help. I am looking for guide

发表评论:

Powered by anycle 湘ICP备15001973号