Apache 2.0 Running a site on another port with a second ipaddress
Stephen B Goldman
sgoldman at MIT.EDU
Fri Apr 20 10:18:05 EDT 2007
Hello Blu,
Running Apache 2.0 - I received a "no listening sockets" when I try to
bind a second ip address (192.168.1.110) Port 1185 on my web server.
I tested (192.168.1.110) on port 80 works fine-
Change it to something other than 80 fails-
The instructions state to document the new listening port.
Can you share some thoughts?
[root at tophat etc]# apachectl -v
Server version: Apache/2.0.52
Server built: Aug 2 2006 05:21:10
[root at tophat etc]#
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
Listen 192.168.1.110:1185
#
# Dynamic Shared Object (DSO) Support
#
[root at tophat conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: (13)Permission denied: make_sock: could not bind to address
192.168.1.110:1185
no listening sockets available, shutting down
Unable to open logs
<VirtualHost 192.168.1.110:1185>
ServerAdmin parking at northwayhome.com
DocumentRoot /var/www/web
ServerName parking at northwayhome.local
# ErrorLog logs/WebDBA-error_log
# TransferLog logs/WebDBA-access_log
</VirtualHost>
[root at tophat network-scripts]# more ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.1.110
NETMASK=255.255.0.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
[root at tophat etc]# more hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.110 parking at northwayhome.local parking
192.168.1.35 tophat.northwayhome.local tophat
[root at tophat log]# tail messages
Apr 20 09:41:18 tophat httpd: no listening sockets available, shutting down
Apr 20 09:41:18 tophat httpd: Unable to open logs
Apr 20 09:41:18 tophat kernel: audit(1177076478.815:9): avc: denied {
name_bind } for pid=6474 comm="httpd" src=1185 scontext=root:system_r:httpd_t
tcontext=system_u:object_r:port_t tclass=tcp_socket
Apr 20 09:41:18 tophat httpd: httpd startup failed
Apr 20 10:07:20 tophat httpd: httpd shutdown failed
Apr 20 10:07:25 tophat httpd: (13)Permission denied: make_sock: could not bind
to address 192.168.1.110:1185
Apr 20 10:07:25 tophat httpd: no listening sockets available, shutting down
Apr 20 10:07:25 tophat httpd: Unable to open logs
Apr 20 10:07:25 tophat kernel: audit(1177078045.770:10): avc: denied {
name_bind } for pid=6497 comm="httpd" src=1185 scontext=root:system_r:httpd_t
tcontext=system_u:object_r:port_t tclass=tcp_socket
Apr 20 10:07:25 tophat httpd: httpd startup failed
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list