help: [warn] _default_ VirtualHost overlap on port 443, the first has precedence

This is a discussion on help: [warn] _default_ VirtualHost overlap on port 443, the first has precedence within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi I have a server with two virtual host (*:80,*:443) on the same IP The https works fine but ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2007
emudojo@gmail.com
 
Posts: n/a
Default help: [warn] _default_ VirtualHost overlap on port 443, the first has precedence

Hi I have a server with two virtual host (*:80,*:443) on the same IP

The https works fine but the https don't it shows the default apache
home page any help?


my virtual hosts are like this.

<VirtualHost *:443>

SSLEngine on
SSLCertificateFile
/home/websites/max-media-manager/conf/ssl/foo.bar.crt
SSLCertificateKeyFile
/home/websites/max-media-manager/conf/ssl/foo.bar.nopass.key

DocumentRoot "/home/websites/max-media-manager"

# The canonical name
ServerName foo.bar.com

# The site may also be referenced by this domain
#ServerAlias cherry.searchrev.com

# Force it to always report ServerName,and not use an Alias. Necessary
# because PHP uses this to determine the config file.
UseCanonicalName On

#..... PHP DIRECTIVES
</VirtualHost>

and for http is

<VirtualHost *:443>

DocumentRoot "/home/websites/max-media-manager"

# The canonical name

ServerName foo.bar.com


# Force it to always report ServerName,and not use an Alias. Necessary
# because PHP uses this to determine the config file.
UseCanonicalName On

#..... PHP DIRECTIVES
</VirtualHost>

and I don't have any ServerName defined in my http.conf...but I still
receiving that error

[warn] _default_ VirtualHost overlap on port 443, the first has
precedence

Any help will be appreciated

  #2 (permalink)  
Old 01-10-2007
Jim Hayter
 
Posts: n/a
Default Re: help: [warn] _default_ VirtualHost overlap on port 443, the firsthas precedence

emudojo@gmail.com wrote:
> Hi I have a server with two virtual host (*:80,*:443) on the same IP
>
> The https works fine but the https don't it shows the default apache
> home page any help?
>
>
> my virtual hosts are like this.
>
> <VirtualHost *:443>
>
> SSLEngine on
> SSLCertificateFile
> /home/websites/max-media-manager/conf/ssl/foo.bar.crt
> SSLCertificateKeyFile
> /home/websites/max-media-manager/conf/ssl/foo.bar.nopass.key
>
> DocumentRoot "/home/websites/max-media-manager"
>
> # The canonical name
> ServerName foo.bar.com
>
> # The site may also be referenced by this domain
> #ServerAlias cherry.searchrev.com
>
> # Force it to always report ServerName,and not use an Alias. Necessary
> # because PHP uses this to determine the config file.
> UseCanonicalName On
>
> #..... PHP DIRECTIVES
> </VirtualHost>
>
> and for http is
>
> <VirtualHost *:443>
>
> DocumentRoot "/home/websites/max-media-manager"
>
> # The canonical name
>
> ServerName foo.bar.com
>
>
> # Force it to always report ServerName,and not use an Alias. Necessary
> # because PHP uses this to determine the config file.
> UseCanonicalName On
>
> #..... PHP DIRECTIVES
> </VirtualHost>
>
> and I don't have any ServerName defined in my http.conf...but I still
> receiving that error
>
> [warn] _default_ VirtualHost overlap on port 443, the first has
> precedence
>
> Any help will be appreciated
>



Both your virtual hosts are listening on port 443. Don't you want the
second to listen on port 80?

Jim
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0