service httpd restart error

Status
Not open for further replies.

MiTUâ„¢

Active Member
225
2010
3
0
Hi, I have installed kloxo on my new VPS. When I trying to restart apache using service httpd restart or /etc/init.d/httpd restart command getting this error please help me.

Code:
Starting httpd: [Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.149:80 overlaps with VirtualHost 5.34.241.149:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.150:80 overlaps with VirtualHost 5.34.241.150:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.149:443 overlaps with VirtualHost 5.34.241.149:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.150:443 overlaps with VirtualHost 5.34.241.150:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.149:80 overlaps with VirtualHost 5.34.241.149:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.150:80 overlaps with VirtualHost 5.34.241.150:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.149:443 overlaps with VirtualHost 5.34.241.149:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.150:443 overlaps with VirtualHost 5.34.241.150:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.149:80 overlaps with VirtualHost 5.34.241.149:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.150:80 overlaps with VirtualHost 5.34.241.150:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.149:443 overlaps with VirtualHost 5.34.241.149:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Jul 30 13:59:42 2012] [warn] VirtualHost 5.34.241.150:443 overlaps with VirtualHost 5.34.241.150:443, the first has precedence, perhaps you need a NameVirtualHost directive
 
3 comments
You must have to create name virtual host on your domain except IP.

for example:

Add NameVirtualHost as follows:
NameVirtualHost *:80

OR add server IP on Domain

NameVirtualHost Domain.com:80
 
Try to find

and change to

ServerName "YourServerName"
and...

PHP:
<VirtualHost *:80>     # Admin email, Server Name (domain name) and any aliases   ServerAdmin webmaster@domain1.com   ServerName  domain1.com   ServerAlias www.domain1.com       # Index file and Document Root (where the public files are located)   DirectoryIndex index.html   DocumentRoot /home/demo/public_html/domain1.com/public       # Custom log file locations   LogLevel warn   ErrorLog  /home/demo/public_html/domain1.com/log/error.log   CustomLog /home/demo/public_html/domain1.com/log/access.log combined   </VirtualHost>
 
Status
Not open for further replies.
Back
Top