logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: vhost issue Unable to understand
Author
ankur328



Joined: 13 Jul 2014
Posts: 3

PostPosted: Mon 25 Aug '14 1:56    Post subject: vhost issue Unable to understand Reply with quote

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

PostPosted: Mon 25 Aug '14 9:39    Post subject: Reply with quote

Did you add
Code:
Listen 8082

to the list of your "Listen" directives?
Back to top
ankur328



Joined: 13 Jul 2014
Posts: 3

PostPosted: Mon 25 Aug '14 10:48    Post subject: Reply with quote

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:

Code:
Listen ip_abc:8081
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Mon 25 Aug '14 11:58    Post subject: Reply with quote

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

PostPosted: Mon 25 Aug '14 15:43    Post subject: Reply with quote

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


Reply to topic   Topic: vhost issue Unable to understand View previous topic :: View next topic
Post new topic   Forum Index -> Apache