I need to set up two VirtualHost (SSL) And when i run apache with ssl not error occur but the second virtualhost is not working . The fact of the two Virtualhost is on the same adress cause that problem ?
This is my config: ssl.conf
This is my config: ssl.conf
Code:
<IfDefine SSL>
Listen xxx.xxx.xxx.xxx:443
NameVirtualHost xxx.xxx.xxx.xxx:443
<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName [URL unfurl="true"]www.toto.ca[/URL]
ServerAlias toto.ca
ServerAlias dev.toto.ca
ServerAdmin support@toto.ca
DocumentRoot /export/htdocs/[URL unfurl="true"]www.toto.ca/public_html_dev/[/URL]
ScriptAlias /cgi-bin/ /export/htdocs/[URL unfurl="true"]www.toto.ca/public_html/cgi-bin/[/URL]
ErrorLog /export/htdocs/[URL unfurl="true"]www.toto.ca/logs/error_log[/URL]
CustomLog "|/usr/local/sbin/cronolog /export/htdocs/[URL unfurl="true"]www.toto.ca/logs/access.%Y%m%d"[/URL] combined
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /export/htdocs/[URL unfurl="true"]www.toto.ca/conf/ssl.cert/toto.ca.crt[/URL]
SSLCertificateKeyFile /export/htdocs/[URL unfurl="true"]www.toto.ca/conf/ssl.cert/toto.ca.key[/URL]
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /export/htdocs/[URL unfurl="true"]www.toto.ca/logs/ssl_request_log[/URL] \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
</IfDefine>
<IfDefine SSL>
<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName [URL unfurl="true"]www.foo.ca[/URL]
ServerAlias foo.ca
ServerAlias dev.foo.ca
ServerAdmin support@foo.ca
DocumentRoot /export/htdocs/[URL unfurl="true"]www.foo.ca/public_html_dev/[/URL]
ScriptAlias /cgi-bin/ /export/htdocs/[URL unfurl="true"]www.foo.ca/public_html/cgi-bin/[/URL]
ErrorLog /export/htdocs/[URL unfurl="true"]www.foo.ca/logs/error_log[/URL]
CustomLog "|/usr/local/sbin/cronolog /export/htdocs/[URL unfurl="true"]www.foo.ca/logs/access-.%Y%m%d"[/URL] combined
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /export/htdocs/[URL unfurl="true"]www.foo.ca/conf/ssl.cert/foo.ca.crt[/URL]
SSLCertificateKeyFile /export/htdocs/[URL unfurl="true"]www.foo.ca/conf/ssl.cert/foo.ca.key[/URL]
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /export/htdocs/[URL unfurl="true"]www.foo.ca/logs/ssl_request_log[/URL] \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
</IfDefine>