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 192.168.1.60 up
>/sbin/arp -s 192.168.1.60 00:A0:24:05:7B:CE 255.255.255.224 pub

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.*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 192.168.1.60 up
/sbin/arp -s 192.168.1.60 00:A0:24:05:7B:CE 255.255.255.224 pub

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

-------------------------------------------------------------------------
------
result of ifconfig

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:2000  Metric:1
          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:192.168.1.61  Bcast:192.168.1.63  
Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          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:192.168.1.60  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          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
packets
# 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>

<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
</VirtualHost>
----------------------------------------------------------------------
thats all.

I appreciate any ideas available  Thanks in advance

Michael

 
 
 

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:

#!/bin/bash
#
# 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
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 - 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