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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 | |
|
|