How did you configure your vitual host?????
On the same IP adress as the main page or a other IP adress (with IP
aliasing)????
Here are 2 posibility's to configure your virtual host for apache:
The first posibility by using IP alaising:
I've used IP Alaising for multiple IP on my eth0 using the adapters eth0:0,
eth0:1 and more.
eth0 192.168.0.106
eth0:0 192.168.0.107
eth0:1 192.168.0.108
You can do this with Yast->System adminstration->Network configuration->Network
base configuration.
Go to a entry with <None> and make a device with "F5"-><Enter other device> and
type "eth0:0".
Use "F6" and type a new IP adress. Or use "F3" and a IP adress will be filled
in.
Now you have multiple IP on your eth0 device and you can use those IP's with the
virtual host section of apache. Now adapting your httpd.conf look below for
example.
-----------Example-------------
add in Section 3: Virtual host
NameVirtualHost 192.168.0.107
Hello, I am a bit new to this so bare with me! I have set up apache and it is working fine, but I have now tried to configure a name based virtual host for a second site I am putting up and I still just get served the main page. when I execute httpd -S the host shows up as configured. Can anyone point me in the right direction?
Thanks Rob Boynton
How did you configure your vitual host?????
On the same IP adress as the main page or a other IP adress (with IP
aliasing)????
Here are 2 posibility's to configure your virtual host for apache:
<b><font size=+1>The first posibility by using IP alaising:</font></b>
I've used IP Alaising for multiple IP on my eth0 using the adapters
eth0:0, eth0:1 and more.
eth0 192.168.0.106
eth0:0 192.168.0.107
eth0:1 192.168.0.108
You can do this with Yast->System adminstration->Network configuration->Network
base configuration.
Go to a entry with <None> and make a device with "F5"-><Enter
other device> and type "eth0:0".
Use "F6" and type a new IP adress. Or use "F3" and a IP adress will
be filled in.
Now you have multiple IP on your eth0 device and you can use those IP's
with the virtual host section of apache. Now adapting your httpd.conf look
below for example.
-----------Example-------------
add in Section 3: Virtual host
NameVirtualHost 192.168.0.107