Apache Http.conf子域

时间:2016-04-05 08:51:45

标签: apache httpd.conf

Http.conf文件适用于主域,但我正在尝试创建一个子域,并且它不断将它们发送到测试页面。我确定问题出在这里(httpd.conf),但我不是百分之百地讨论所有这些问题。

ServerName 1.2.3.4 #hidden

<VirtualHost *:3304>
    ServerName mydomain.com
    ServerAlias mydomain.com
    DocumentRoot "/var/www/html"
    LogLevel warn
    SSLEngine on
    SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
    SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
    SSLCertificateFile /cert/mydomain_com.crt
    SSLCertificateKeyFile /cert/mydomain_com.key
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
        SSLOptions +StdEnvVars
    </Files>
    <Directory "/var/www/cgi-bin">
        SSLOptions +StdEnvVars
    </Directory>
    UserDir "html/" 
</VirtualHost>

SSLEngine off
SSLVerifyClient none
KeepAlive on

#the new sub domain - adding this causes the error   
<VirtualHost 1.2.3.4>
    ServerName testsite.mydomain.com
    ServerAlias testsite.mydomain.com
    DocumentRoot "/var/www_demo/public_html"
</VirtualHost>

两者都在运行PHP框架,但只有主域需要SSL保护。

提前致谢

0 个答案:

没有答案