Apache 1.0 / Linux 1.2.13 Virtual Web

Apache 1.0 / Linux 1.2.13 Virtual Web

Post by Scott McArth » Sat, 30 Dec 1995 04:00:00

HELP! I have downloaded all the appropriate software, compiled the new
kernel with the DUMMY feature off, and am currently running it.

I have setup each virtual domain to use there own IP address, given
the limitation in Apache (right now :) ).

I am attempting to control this setup with the following script:

# rc.virtual    This shell script boots up or takes down
#                         the virtual domains.
# This script was obtained from :
# http://www.veryComputer.com/~awm/apache/virtualscript.html

# Current Ethernet Address

# List of machine names to act as...
names="www.blah.com www.blahblah.com"


if [ "$1" = "stop" ]
        for addr in $names
                /sbin/route del $addr
                /sbin/ifconfig dummy$count down
                /sbin/arp -d $addr
                /sbin/rmmod dummy$count
                echo dummy$count \!= $addr
                let count=$count+1
elif [ "$1" = "start" -o "$1" = "" ]
        for addr in $names
                echo dummy$count -\> $addr
                /sbin/insmod -o dummy$count /lib/modules/1.2.13/net/dummy.o
                /sbin/ifconfig dummy$count $addr -broadcast
                /sbin/route add $addr dummy$count
                /sbin/arp -s $addr $ETH pub
                let count=$count+1
        echo 'Usage: '$0' [start|stop]'

# End of rc.virtual

The problem is when it invokes this line:

/sbin/insmod -o dummy$count /lib/modules/1.2.13/net/dummy.o

It gives me this error:

ether_setup_R580a0211 undefined
dev_kfree_skb_Re7dae270 undefined
dev_get_R53977feb undefined
sprintf_Rf9003107 undefined
register_netdev_R298819f5 undefined
printk_Rad1148ba undefined
unregister_netdev_Rf1aa84e4 undefined
SIOCSIFADDR: No such device
SIOCADDRT: Invalid argument

Did I miscompile the 'dummy.c' code?? Anyone know whats up? Any light
somebody could shed on this subject would be appreciated.


Scott D. McArthur
System Administrator - *space Online Information Services



1. Apache 1.0 Linux 1.2.13 / Virtual Host Problem

Try doing:

/sbin/route add dev dummy0

..before the arp command (make sure it's before the arp; order is important).
I don't think you need the netmask in the arp either, but I'm not sure what
your local setup is.



| Unix Systems Administrator          http://www.cybercomm.net/               |
+ CyberComm Online Services           telnet://cybercomm.net/                 +

2. NIS API sources

3. Apache 1.0 on Linux 1.2.13 -- compile errors

4. Waterloo Linux User Group

5. DummyN interfaces on 1.2.13 - virtual web setup?

6. using EWAN telnet with AIX 4.3.1

7. strange problems 1.2.13 --> 2.0.0 --> 1.2.13

8. VNC and CDE

9. AP6.1 / Linux 1.2.13 Virtual Mem Prob

10. Anyone know how to setup a virtual/alias ip under Linux 1.2.13

11. Virtual Hosts on NCSA 1.5a and Linux 1.2.13

12. Apache 1.1.1 on Linux 1.2.13

13. Apache 1.0.3 dying on Linux 1.2.13