David BERCOT wrote: > Hi, > > Is it possible to have two _defaut_ sections in apache2.conf, one for > http and another for https ? Well, by definition, the first 'vhost' for port 80 is the default for port 80 (http) and the first one for port 443 is the default for https. So, yes. > <VirtualHost _default_:80> > ServerName www.mondomaine.org > DocumentRoot /www/www.mondomaine.org > </VirtualHost> > <VirtualHost *:443> > ServerName sitehttps.mondomaine.org > DocumentRoot /www/sitehttps.mondomaine.org > [...] > </VirtualHost> > > Everything is ok !!! > But, if I add : > <VirtualHost _default_:443> > DocumentRoot /www/site2https.mondomaine.org > [...] > </VirtualHost> > > I have this error : > Restarting web server: apache2[Tue Dec 23 15:59:49 2008] [warn] > _default_ VirtualHost overlap on port 443, the first has precedence ... The problem with HTTPS is that the server won't be able to know which one is the one requested before decoding the request, for which he needs a certificate, so he ALWAY picks the first vhost for 443. That means that your 'default' https vhost HAVE TO BE the first one. Davide -- I don't care to belong to a club that accepts people like me as members. -- Julius Henry "Groucho" Marx (http://en.wikiquote.org/wiki/Groucho_Marx) --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx