Author |
|
ankur328
Joined: 13 Jul 2014 Posts: 3
|
Posted: Mon 25 Aug '14 1:56 Post subject: vhost issue Unable to understand |
|
|
Hi I have vhists configred for my sites like:
Code: | <VirtualHost ip_abc:8081>
........
.....
....
</VirtualHost> |
Now I have added a new vhost but on entering the same information on some other port say:
Code: | <VirtualHost ip_abc:8082>
........
.....
....
</VirtualHost> |
It gives me error saying:
Quote: | [crit] (EAI 2)Name or service not known: alloc_listener: failed to set up sockaddr for ip_abc |
Please help...I dont know where ip_abc is configured.
The httpd.conf is having a Listen directive with
Listen ip_abc:Port. |
|
Back to top |
|
CamaroSS
Joined: 24 Jan 2013 Posts: 78 Location: RF, Tver
|
Posted: Mon 25 Aug '14 9:39 Post subject: |
|
|
Did you add
to the list of your "Listen" directives? |
|
Back to top |
|
ankur328
Joined: 13 Jul 2014 Posts: 3
|
Posted: Mon 25 Aug '14 10:48 Post subject: |
|
|
yes i added Listen 8082, Listen ip_abc:8082 on httpd.conf. But both the options didnt work..
I other vhosts however ip_abc is present in both vhosts and their repective httpd.conf files.
i.e.
Code: | <VirtualHost ip_abc:8081>
........
.....
....
</VirtualHost> |
and in httpd.conf:
|
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Mon 25 Aug '14 11:58 Post subject: |
|
|
You can try when it is on port 8081:
Listen 8081
and
<VirtualHost *> |
|
Back to top |
|
CamaroSS
Joined: 24 Jan 2013 Posts: 78 Location: RF, Tver
|
Posted: Mon 25 Aug '14 15:43 Post subject: |
|
|
It should be like this:
Code: | Listen 8081
Listen 8082
<VirtualHost ip_abc:8081>
…
</VirtualHost>
<VirtualHost ip_abc:8082>
…
</VirtualHost>
|
Make sure you didn't mistype the IP address. |
|
Back to top |
|