• Register
0 votes
187 views

Problems:

Error: [warn] default virtualhost overlap on port 443, the first has precedence

The above mentioned error can be appear on your output screen as follows:

* Restarting web server apache2 [Sun Jun 17 17:57:49 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence ... waiting [Sun Jun 17 17:57:50 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

What could be the cause of the Error [warn] default virtualhost overlap on port 443, the first has precedence?

You cannot use name based virtual hosts with SSL because the SSL handshake (when the browser accepts the secure Web server's certificate) occurs before the HTTP request, which identifies the appropriate name based virtual host. If you plan to use name-based virtual hosts, remember that they only work with your non-secure Web server.

5 1
200 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

Add this to ports.conf or http.conf and keep your above config.

# /etc/apache/ports.conf 

# If you just change the port or add more ports here, you will likely also 

# have to change the VirtualHost statement in 

# /etc/apache2/sites-enabled/000-default 

# This is also true if you have upgraded from before 2.2.9-3 (i.e. from 

# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and 

# README.Debian.gz 

NameVirtualHost *:80 

Listen 80 

<IfModule mod_ssl.c> 

# If you add NameVirtualHost *:443 here, you will also have to change 

# the VirtualHost statement in /etc/apache2/sites-available/default-ssl 

# to <VirtualHost *:443> 

# Server Name Indication for SSL named virtual hosts is currently not 

# supported by MSIE on Windows XP. 

 

NameVirtualHost *:443 

Listen 443 

</IfModule> 

<IfModule mod_gnutls.c> 

NameVirtualHost *:443 

Listen 443 

</IfModule>



Do not forget to restart your Apache server after adding the above code in your config. Furthermore, make sure that 'sites-available/default-ssl' is not enabled, type a2dissite default-ssl to disable the site. While you're at it type a2dissite by itself to get a list and see if there is any other site settings that you have enabled that might be mapping onto port 443.
3
460 points

Related questions

0 votes
1 answer 55 views
55 views
Problem: Which device file below represents the first primary partition on the second pata hard disk drive? Does any one know about this device name?
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 115 views
115 views
Problem : I am using my home network to share my files between devices in my household with no problem, but very recently I had to re-install the Windows 10, after that, no devices were shown under the Network in File Explorer. I can surely ping my devices ... Home network System error 6118 has occurred. The list of servers for this workgroup is not currently available. What seems to be a problem?
asked Feb 3, 2020 jwilliam 3.9k points
0 votes
2 answers 1.1K views
1.1K views
Problem: I am attempting to download records from a https webpage and continue getting the accompanying error: OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Unable to establish SSL connection. From perusing sites online I assemble I need to give ... alternative however that didn't work. wget version: wget-1.13.4 openssl version: OpenSSL 1.0.1f 6 Jan 2014
asked Nov 30, 2019 alecxe 7.5k points
0 votes
2 answers 243 views
243 views
Problem : I am getting bellow error while using keytool keytool error: java.lang.exception: public keys in reply and keystore don't match
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 17 views
17 views
Problem: What type of DHCP packet first initiates the IP address request sequence?
asked Apr 12, 2020 ArifulIslam 5.6k points
0 votes
1 answer 141 views
141 views
Problem: Can any one help me with right solution? Which server assigns an IP address to a computer when it first attempts to initiate a connection to the network?
asked Feb 22, 2020 maddi86 5.4k points
0 votes
1 answer 27 views
27 views
Problem: I am new to networking, I need help, can anyone help me? ​What type of DHCP packet first initiates the IP address request sequence? a. ​DHCPREQUEST b. ​DHCPDISCOVER c. ​DHCPOFFER d. ​DHCPACK
asked Feb 17, 2020 maddi86 5.4k points
1 vote
1 answer 502 views
502 views
Problem : When I call a blank layout and afterwards call my layout it gives me the following error: the specified child already has a parent. you must call removeview() on the child's parent first.
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 14 views
14 views
Problem: Which of the following methods should you use to configure dynamic libraries on a Linux system? (Select two.) Use the LD_LIBRARY _PATH environment variable to specify additional directories to search for library files. Modify /etc/ld.so.cache to add the path of the libraries. Edit all files with the .a filename extension. Modify /etc/ld.so.conf to add the path of the libraries.
asked Jul 23, 2020 sstones 830 points
0 votes
1 answer 7 views
7 views
Problem: Which of the following, with regard to the entire database, should be made on a regular basis?
asked Jul 22, 2020 sstones 830 points