I am sorry for posting another problem to this list but
after checking the OSF archive, apache archives and
spending the entire weekend at the office, this is
the only place i can think of.....
In short
--------
Apache refuses to bind to any IPs including a newly
created virtual IP even though no webservers were ever
configured for that IP and all webservers are killed
(and removed from startup scripts) and the Alpha restarted.
Full details are below... I have checked everything i think.
Thank you in advance if anyone can spot what I may have
screwed up.
chas
Full details :
------------
I am working on an Alpha 200 with OSF/1 3.2
=== Background : =====
48 hours ago I had one domain (202.184.153.4) running
Netscape webserver 1.1
=== The goal : ====
To add several domains and run Apache virtual hosts.
(since somebody has hidden our Netscape distribution CDROM) :
=== Step 1 : add IPs ===
I added a virtual domain (202.184.153.27) with the following in rc.config
:
HOSTNAME="www1.mdc.com.my"
NUM_NETCONFIG="2"
MAX_NETDEVS="24"
NETDEV_0="tu0"
NETDEV_1="tu0"
IFCONFIG_0="202.184.153.4 netmask 255.255.255.0"
IFCONFIG_1="202.184.153.27 netmask 255.255.255.0 alias"
This works fine. I can ping 202.184.153.27
=== Step 2 : run Apache ===
I downloaded the most recent version of Apache (1.2b7) and
compiled it with cc : it automatically detected system
variables and created the httpd executable.
I configured the httpd.conf, srm.conf and access.conf files
(something I have done many times before on AIX/FreeBSD) but kept
getting the "cannot bind to requested port (202.184.153.27)".
NOTE - it cannot bind to the ifconfig aliased IP....
which was not previously being used by anything !
Yes, I killed the previous Netscape servers, removed the
startup scripts for the Netscape servers from rc3.d,
rebooted the machine, made sure that no webservers were
answering to either the real or virtual IP.
And yet Apache still refuses to bind to these addresses.
I was running Apache under
user httpd
group httpd
(and checked /logs/error_log to make sure that this was not the problem)
I even tried running Apache under
user root
group 1
I also had the /usr/local/etc/apache directory owned by httpd or
root respectively.
Still no joy :(
=== Bottomline : ===
1) Still can't get Apache to run.
2) Tried the Apache1.1.1 binary (from apache.org) but that was
made for DU 4 and fails on DU3.2
3) Tried compiling Apache 1.1.3 and that produced errors.
4) Finally, I have put back the Netscape server.
FWIW, I haven't touched its configuration at all
yet it answers to both 202.184.153.4 and
202.184.153.27
5) About to go try building Apache1.1.1
Thank you very much for your help.
Chas
For completion, snippets from httpd.conf for Apache :
Listen 202.184.153.4:80
Listen 202.184.153.27:80
<VirtualHost 202.184.153.4>
ErrorLog logs/mdc.error_log
TransferLog logs/mdc.access_log
ServerAdmin webmaster_at_neuronet.com.my
DocumentRoot /www/mdc/public
ServerName mdc.com.my
</VirtualHost>
<VirtualHost 202.184.153.27>
ErrorLog logs/cyclops.error_log
TransferLog logs/cyclops.access_log
ServerAdmin webmaster_at_neuronet.com.my
DocumentRoot /www/cyclops/public
ServerName cyclops.com.my
ScriptAlias /cgi-bin/ /www/cyclops/cgi-bin
</VirtualHost>
but even if I configure this for the real domain and no virtual hosts,
it cannot bind to the IP !
NeWT (Neuronet Web Team)
http://heaven.com.my - Channel X.
http://neuronet.com.my - Home.
Received on Mon Mar 31 1997 - 09:50:16 NZST