Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Cant make apache listen on an IP address and port

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


sgeorge.ml at gmail

Nov 11, 2009, 4:48 AM

Post #1 of 5 (739 views)
Permalink
Cant make apache listen on an IP address and port

HI I have the following ports.conf



NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>


Listen 213.49.146.24:8080

I have this in sites-enabled

<VirtualHost 213.49.146.24:8080>
ServerAdmin webmaster [at] localhos
Redirect / https://213.49.146.24/

</VirtualHost


I have this line in /etc/hosts


213.49.146.24 isystem

when I try to restart apache it gives me this error

# apache2ctl start
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName
(99)Cannot assign requested address: make_sock: could not bind to
address 213.49.146.24:8080
no listening sockets available, shutting down
Unable to open logs

What could be the trouble?

Thanks

--Siju

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


icicimov at gmail

Nov 11, 2009, 4:51 AM

Post #2 of 5 (703 views)
Permalink
Re: Cant make apache listen on an IP address and port [In reply to]

You need the ServerName statement.

On Wed, Nov 11, 2009 at 11:48 PM, Siju George <sgeorge.ml [at] gmail> wrote:

> HI I have the following ports.conf
>
>
>
> NameVirtualHost *:80
> Listen 80
>
> <IfModule mod_ssl.c>
> # SSL name based virtual hosts are not yet supported, therefore no
> # NameVirtualHost statement here
> Listen 443
> </IfModule>
>
>
> Listen 213.49.146.24:8080
>
> I have this in sites-enabled
>
> <VirtualHost 213.49.146.24:8080>
> ServerAdmin webmaster [at] localhos
> Redirect / https://213.49.146.24/
>
> </VirtualHost
>
>
> I have this line in /etc/hosts
>
>
> 213.49.146.24 isystem
>
> when I try to restart apache it gives me this error
>
> # apache2ctl start
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.1.1 for ServerName
> (99)Cannot assign requested address: make_sock: could not bind to
> address 213.49.146.24:8080
> no listening sockets available, shutting down
> Unable to open logs
>
> What could be the trouble?
>
> Thanks
>
> --Siju
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


phil at philipwigg

Nov 11, 2009, 5:04 AM

Post #3 of 5 (703 views)
Permalink
Re: Cant make apache listen on an IP address and port [In reply to]

> (99)Cannot assign requested address: make_sock: could not bind to
> address 213.49.146.24:8080
> no listening sockets available, shutting down
> Unable to open logs
>
> What could be the trouble?

The server must actually have 213.49.146.24 as it's IP address. Is
that the case here? It's no good just putting the IP in /etc/hosts if
that IP isn't bound to one of the network interfaces.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


rbowen at rcbowen

Nov 11, 2009, 9:57 AM

Post #4 of 5 (700 views)
Permalink
Re: Cant make apache listen on an IP address and port [In reply to]

On Nov 11, 2009, at 07:48 , Siju George wrote:

> # apache2ctl start
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.1.1 for ServerName
> (99)Cannot assign requested address: make_sock: could not bind to
> address 213.49.146.24:8080
> no listening sockets available, shutting down
> Unable to open logs


Please see http://wiki.apache.org/httpd/CouldNotBindToAddress for an
in-depth discussion of this issue, and possible solutions.

Note that the first message ("Could not reliably ...") is a warning,
not an error, but you probably should set ServerName. The rest of the
message is an actual error condition.

--
Rich Bowen
rbowen [at] rcbowen




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


sgeorge.ml at gmail

Nov 11, 2009, 6:27 PM

Post #5 of 5 (692 views)
Permalink
Re: Cant make apache listen on an IP address and port [In reply to]

On Wed, Nov 11, 2009 at 6:34 PM, Philip Wigg <phil [at] philipwigg> wrote:
>> (99)Cannot assign requested address: make_sock: could not bind to
>> address 213.49.146.24:8080
>> no listening sockets available, shutting down
>> Unable to open logs
>>
>> What could be the trouble?
>
> The server must actually have 213.49.146.24 as it's IP address. Is
> that the case here? It's no good just putting the IP in /etc/hosts if
> that IP isn't bound to one of the network interfaces.
>

OK I got the point. It is working now :-)

Thanks Philip, Igor and Rich

--Siju

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.