Warning: this document has been unmaintained for a very long time.
Configuring linux to run Apache 0.8 + with virtual hosts
Some advice on configuring Linux so that it can run Apache
and virtual hosts
- You'll need linux kernel 1.2.x ( >=5 recommended) and compile with the following options:
CONFIG_MODVERSIONS=y
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set ( say no when configuring )
- make dep ; make zImage ; make modules ; make modules_install
- cp /usr/src/linux/arch/i386/boot/zImage /vmlinuz
- rdev -R /vmlinuz 1 ; lilo
- reboot system
- insmod -o dummy0 /lib/modules/1.2.x/net/dummy.o
- ifconfig dummy0 200.200.200.50 up
NOTE: Make sure the IP address you choice is a valid one,
and not being used.
- arp -s <ethernet address> 200.200.200.50 netmask 255.255.255.255 pub
NOTE: the ethernet address of your ethernet card can be found if you
type ifconfig eth0. First line, there are 6 hex numbers sepearted by
':'. Use that.
- route add 200.200.200.50 dummy0
- Add <virtual host 200.200.200.50> ..... < /virtualhost> to your httpd.conf file.
- Add 200.200.200.50 to your /etc/hosts or DNS database files.
- Repeat from Step 1. with dummy1 if so desired.
Good luck.