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:

#!/bin/bash
#
# 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
ETH=blah:blah:blah:blah:blah:blah

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

count=0

if [ "$1" = "stop" ]
then
        for addr in $names
        do
                /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
        done
elif [ "$1" = "start" -o "$1" = "" ]
then
        for addr in $names
        do
                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
        done
else
        echo 'Usage: '$0' [start|stop]'
fi

# 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.

Thanks,

-------------------------------------------------------------
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 192.168.1.60 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.

Jim

--

| 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