Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache2 warning about NameVirtualHost directive

Tags:

Can someone help me to understand why I receive the following errors when restarting my apache2 webserver:

[Fri Nov 09 09:46:43 2012] [warn] VirtualHost 172.30.30.12:443 overlaps with VirtualHost 172.30.30.12:443, the first has precedence, perhaps you need a NameVirtualHost directive [Fri Nov 09 09:46:43 2012] [warn] VirtualHost 172.30.30.12:443 overlaps with VirtualHost 172.30.30.12:443, the first has precedence, perhaps you need a NameVirtualHost directive 

The error always appears twice. What is a NameVirtualHost directive?

Thanks.

like image 668
DanielAttard Avatar asked Nov 09 '12 14:11

DanielAttard


People also ask

What is Namevirtualhost Apache?

Name-based virtual hosting is usually simpler, since you need only configure your DNS server to map each hostname to the correct IP address and then configure the Apache HTTP Server to recognize the different hostnames. Name-based virtual hosting also eases the demand for scarce IP addresses.

Which Apache HTTP server directive is used to restrict the effect of the access controls to the nominated HTTP methods?

CGIPassAuth Directive This is to disallow scripts from seeing user ids and passwords used to access the server when HTTP Basic authentication is enabled in the web server.

What directive defines the location on the server that will be shared with clients?

The DefaultRuntimeDir directive sets the directory in which the server will create various run-time files (shared memory, locks, etc.). If set as a relative path, the full path will be relative to ServerRoot .


1 Answers

Look at this example.

You probably need to add this line to your Apache HTTP Server configuration:

NameVirtualHost 172.30.30.12:443 
like image 195
Perleone Avatar answered Sep 27 '22 21:09

Perleone