[HELP] Error VirtualHost on DirectAdmin with danginx

quangtam

Verified User
Joined
Sep 8, 2011
Messages
18
Dear Support,

My server is CentOS 5 final, and DirectAdmin v1.39.3. I've install memcached, danginx and now it is error:

[root@sv1 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80
overlaps with VirtualHost 203.113.137.171:80, the first has precedence, perhaps
you need a NameVirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive
[Fri Sep 09 01:50:30 2011] [warn] VirtualHost 203.113.137.171:80 overlaps with V
irtualHost 203.113.137.171:80, the first has precedence, perhaps you need a Name
VirtualHost directive

Now i can't add new domain to my server. Please help me!
 
@quangtam:

You posted under Employment Opportunities. Are you looking to hire someone to help you figure out why you can't add a new domain to your server?

If not, then you've posted in the wrong place.

Jeff
 
I think i posted wrong place, MOD please help me correct move.
Please help me!
 
Directadmin community can not help you, I suppose, as you use a 3rd party software together with Directadmin. And danginx interfere into original scheme of directadmin virtual hosts. That's why I suggest you asking danginx support team.
 
youb are lucky.. i buy 5 license.. and they just said to all problem contact my support server..
lol

now all ip i have on the server http://theip, its go to the same website.. 3 servers on 5

after many false reason,
they answer just it :

Hello,

If you still wish to solve the direct IP access issue, then you can create a custom vhost for the IPs and include it in nginx.conf file. A Sample is as follows,
--------------
server {
error_log logs/vhost-error_log warn;
listen 80;
server_name 67.215.12.18 68.168.124.130 68.168.124.130; # place all ips here
location / {
log_not_found off;
root /var/www/html/;
client_max_body_size 1000m;
client_body_buffer_size 128k;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_connect_timeout 30s;
proxy_pass http://127.0.0.1:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}


i have 400 virtual host on 68.168.124.130
and if you visit 68.168.124.130 , its give one website,
samething for all ip shared or not
its give the same website..

i want they said just shared ip.. grrr
 
Back
Top