• Register
0 votes
266 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 3 views
3 views
Problem: Why I got the error > [warn] _default_ virtualhost overlap on port 443, the first has precedence
asked 4 days ago ummeshani 8.8k points
1 vote
1 answer 1 view
1 view
Problem: I get this error whenever I try to run Apache : _default_ virtualhost overlap on port 443 I&rsquo;ve tried using some online solutions but none of them seemed to work . Can anyone tell what is wrong and how can I solve this ?
asked 5 days ago Raj Tyagi 14.4k points
0 votes
1 answer 3 views
3 views
Problem: I'll make a submission for a response to my question. Please, I have searched the internet but have not found any useful material, and I am now having trouble continuing my studies.
asked Apr 1 rakib1 51.5k points
1 vote
1 answer 12 views
12 views
Problem: Is some body here to tell me why I am getting this warning? You configured http(80) on the standard https(443) port!.
asked Mar 26 PkGuy 23.5k points
0 votes
1 answer 3 views
3 views
Problem: How can you find out which process is listening on a TCP or UDP port on Windows?
asked 1 day ago sumaiya simi 43.9k points
0 votes
1 answer 69 views
69 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
0 answers 3 views
3 views
Problem: My webpages are on a secured server (https), and I am trying to connect the SQL Server 2008 Database, which is a normal server. I am writing connection string on-page itself, not in web.config file. And I am getting the following error:- The login is from an untrusted domain and cannot be used with Windows authentication.
asked Apr 25 ummeshani 8.8k points
0 votes
1 answer 4 views
4 views
Problem: I need help with this problem: ' A fatal error occurred when attempting to access the SSL client credential private key. The error code returned from the cryptographic module is 0x8009030d. The internal error state is 10003. ' How can I solve this error?
asked Apr 11 ochena 22.1k points
0 votes
1 answer 3 views
3 views
Problem: I've set up my mail server by using postfix (mysql), dovecot, and applied a ssl certificate to mail.example.com with Let's encrypte. I tried to get my mail with Gmail by importing the account *Emails are not allowed*, I couldn't do it with the SSL box ... conf with ssl = required I successfully get the mail in Gmail, but my question is : Is it secured ? I'm not sure to understand this
asked 4 days ago padma1 34.3k points
0 votes
1 answer 3 views
3 views
Problem: Can someone fix this?
asked Mar 19 PkGuy 23.5k points