You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Miroslav Ris <mi...@ichistory.org> on 2004/06/25 11:57:05 UTC

[users@httpd] problem with VirtualHost and SSL

hi,

have problem with setting multiply VirtualHost's with SSL encryption with same
ip:
part from config file:

<VirtualHost *:443>
  ServerName www.example.org
  ServerAlias example.org example
  ServerAdmin webmaster@example.org
  SSLEngine On
  SSLCertificateFile /opt/etc/apache2/ssl/example.org.crt
  SSLCertificateKeyFile /opt/etc/apache2/ssl/example.org.key
  <Files ~ "\.(cgi|plx|pl|shtml|php)$">
  SSLOptions +StdEnvVars
  </Files>
  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  DocumentRoot "/web/var/apache2/example.org"
  DirectoryIndex index.html index.plx
  CustomLog "/web/var/log/apache2/example.org_access.log" combined
  ErrorLog "/web/var/log/apache2/example.org_error.log"
  <Directory "/web/var/apache2/example.org">
  Options All +MultiViews -ExecCGI -Indexes
  DirectoryIndex index
  AllowOverride None
  Order allow,deny
  Allow from all
  </Directory>
</VirtualHost>

<VirtualHost *:443>
  ServerName www.another.example.org
  ServerAlias  another.example.org another.example
  BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  ServerAdmin webmaster@example.org
  SSLEngine On
  SSLCertificateFile /opt/etc/apache2/ssl/another.example.org.crt
  SSLCertificateKeyFile /opt/etc/apache2/ssl/another.example.org.key
  <Files ~ "\.(plx|php)$">
  SSLOptions +StdEnvVars
  </Files>
  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  DocumentRoot "/web/var/apache2/another.example.org"
  DirectoryIndex index.php
  CustomLog "/web/var/log/apache2/another.example.org_access.log" combined
  ErrorLog "/web/var/log/apache2/another.example.org_error.log"
  <Directory "/web/var/apache2/another.example.org">
  Options All +MultiViews -ExecCGI -Indexes
  AllowOverride None
  </Directory>
</VirtualHost>

and getting this error:
[Fri Jun 25 12:43:59 2004] [warn] _default_ VirtualHost overlap on port 443,
the first has precedence
Syntax OK

if i force start httpd only one site (first) loading.

what problem?
how-to locate many sites with ssl using one ip and one standard port?

thanks!

--
Miroslav Ris


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org