Okay, so i currently own a dedicated server running Debian.
I just added a additional IP to it, and not quite sure how to make use of it!
Goal - To run a website & server from the IP separate from the original server.
So lets say 69.xx.xx.xx runs Server A and Website A
The additional IP = 200.xx.xx.xx
So, the first thing i needed to do was add a virtual host. Which i think i did correctly..
/etc/network/interfaces includes this
Hopefully that is right? "ifconfig" outputs
So 69.xx.xx.xx Points to /var/www/website1
i want to point 200.xx.xx.xx to /var/www/website2
So this is in my httpd.conf
Is this even right?
What would be required to complete the Goal?
How would i point the OT server to the virtual host IP?
Thanks
I just added a additional IP to it, and not quite sure how to make use of it!
Goal - To run a website & server from the IP separate from the original server.
So lets say 69.xx.xx.xx runs Server A and Website A
The additional IP = 200.xx.xx.xx
So, the first thing i needed to do was add a virtual host. Which i think i did correctly..
/etc/network/interfaces includes this
Code:
auto lo
iface lo inet loopback
auto eth0 eth0:1
iface eth0 inet static
address 69.xx.xx.xx
network 69.xx.xx.xx
netmask 255.255.255.xxx
broadcast 69.xx.xx.xx
gateway 69.xx.xx.xx
iface eth0:1 inet static
address 200.xx.xx.xx
netmask 255.255.255.xxx
broadcast 200.xx.xx.xx
Hopefully that is right? "ifconfig" outputs
Code:
eth0:1 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
inet addr:200.xx.xx.xx Bcast:200.xx.xx.xx Mask:255.255.255.xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16 Memory:fa000000-fa012800
So 69.xx.xx.xx Points to /var/www/website1
i want to point 200.xx.xx.xx to /var/www/website2
So this is in my httpd.conf
Code:
NameVirtualHost 200.xx.xx.xx
<VirtualHost 200.xx.xx.xx>
ServerName www.website2.com
DocumentRoot /var/www/website2
</VirtualHost>
Is this even right?
What would be required to complete the Goal?
How would i point the OT server to the virtual host IP?
Thanks
Last edited: