Apache 1.0 Linux 1.2.13 / Virtual Host Problem

Apache 1.0 Linux 1.2.13 / Virtual Host Problem

Post by Jim Stewa » Mon, 11 Dec 1995 04:00:00

>/sbin/insmod -o dummy0 /lib/modules/1.2.13/net/dummy.o
>/sbin/ifconfig dummy0 up
>/sbin/arp -s 00:A0:24:05:7B:CE pub

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.*comm.net/               |
+ *Comm Online Services           telnet://*comm.net/                 +


Apache 1.0 Linux 1.2.13 / Virtual Host Problem

Post by Michael Robinto » Mon, 11 Dec 1995 04:00:00

Can't get linux 1.2.13 / apache 1.0
to support virtual hosts.

I have performed the steps in the apache virtual hosts (0.8) faq as shown
below but the new address does not come on line.  

Linux is configured as a firewall per the firewall faq, but is used as a
normal host for everyone inside the firewall.  Apache performs normally
when the host is addressed directly but will not respond to querys to the
virtual host.

Virtual address will not PING.

File hosts has been updated everywhere.

Anybody have a clue?

startup up commands

# /etc/rc.d/rc.local:  Local system initialization script.
#apache default location -> /usr/local/etc/httpd

/sbin/insmod -o dummy0 /lib/modules/1.2.13/net/dummy.o
/sbin/ifconfig dummy0 up
/sbin/arp -s 00:A0:24:05:7B:CE pub

/usr/src/apache/src/httpd -f conf/httpd.conf

result of ifconfig

lo        Link encap:Local Loopback
          inet addr:  Bcast:  Mask:
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:12 errors:0 dropped:0 overruns:0
eth0      Link encap:10Mbps Ethernet  HWaddr 00:A0:24:05:7B:CE
          inet addr:  Bcast:  
          RX packets:2931 errors:0 dropped:0 overruns:0
          TX packets:3267 errors:0 dropped:0 overruns:0
          Interrupt:10 Base address:0x300
dummy0    Link encap:10Mbps Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:  Bcast:  Mask:
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:0 errors:0 dropped:0 overruns:0
          Interrupt:0 Base address:0x0
# file:   httpd.conf

ServerType standalone
Port 80
User nobody
Group #-1
ServerAdmin send.no.mail
ServerRoot /usr/local/etc/httpd
BindAddress *
ErrorLog logs/error_log
TransferLog logs/access_log
PidFile logs/httpd.pid
ServerName www.girlswear.com
Timeout 1000
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 50
MaxRequestsPerChild 30

# VirtualHost: Allows the daemon to respond to requests for more than one
# server address, if your server machine is configured to accept IP
# for multiple addresses. This can be accomplished with the ifconfig
# alias flag, or through kernel patches like VIF.

# Any httpd.conf or srm.conf directive may go into a VirtualHost command.
# See alto the BindAddress entry.

#<VirtualHost host.foo.com>

#DocumentRoot /www/docs/host.foo.com
#ServerName host.foo.com
#ErrorLog logs/host.foo.com-error_log
#TransferLog logs/host.foo.com-access_log

<VirtualHost docs>
ServerAdmin send.no.mail
DocumentRoot /cdrom
ServerName cdrom.browser
ErrorLog /usr/local/etc/httpd/logs/doc-error.log
TransferLog /usr/local/etc/httpd/logs/doc-access.log
thats all.

I appreciate any ideas available  Thanks in advance



1. Apache 1.0 / Linux 1.2.13 Virtual Web

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://luers.qosina.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 - Cyberspace Online Information Services


2. samba and FreeBSD, a note (2.0.3 and 3.2-R)

3. Apache 1.0 on Linux 1.2.13 -- compile errors

4. 3c509B-TPO

5. Virtual Hosts on NCSA 1.5a and Linux 1.2.13

6. Dorm room Linux Configuration for Ethernet

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

8. Linux DMA

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. Apache 1.1.1 on Linux 1.2.13

12. Apache 1.0.3 dying on Linux 1.2.13

13. Help configuring apache 1.0.0 & Linux 1.2.13