service httpd restart error

CheenceIllige

New Member
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 http://www.cyberciti.biz/faq/warn-_default_-virtualhost-overlap-port80-first-hasprecedence/ 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

Quote: #ServerName www.example.com:80 and change to

Quote: ServerName "YourServerName" and...

PHP Code: \[code\]<VirtualHost *:80>     # Admin email, Server Name (domain name) and any aliases   ServerAdmin [email protected]   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> 
\[/code\]
 
Top