• Adding a new IP to apache2 web server

    I have just had a second IP for my web server and wish to use it for a dedicated domain name.

    Here is how you configure apache2 to serve requests on that IP to a specific virtualhost

    assumptions:

    new IP is 192.168.1.2

    new website is called newip.labby.co.uk

    <VirtualHost 192.168.1.2>

    UseCanonicalName Off

    ServerName newip.labby.co.uk

    ServerAlias *.newip.labby.co.uk

    ServerAlias *

    DocumentRoot /var/www/newip.labby.co.uk

    ErrorLog /var/log/apache2/error-newip.labby.co.uk.log

    LogLevel warn

    CustomLog /var/log/apache2/access-newip.labby.co.uk.log

    <Directory /var/www/newip.labby.co.uk>

    Allow From All

    Options +Indexes +FollowSymLinks

    </Directory>

    </virtualhost>



    The following is unaffiliated with labby.co.uk

    Incoming search terms for the article:

    • AIM
    • Bebo
    • Delicious
    • Digg
    • Blogger Post
    • BlogMarks
    • Facebook
    • Google Bookmarks
    • Google Buzz
    • Google Gmail
    • Hotmail
    • Identi.ca
    • LiveJournal
    • Linkatopia
    • MySpace
    • Slashdot
    • Shoutwire
    • Sphere
    • StumbleUpon
    • Technorati Favorites
    • TechNet
    • Twitter
    • TypePad Post
    • Webnews
    • Yahoo Bookmarks
    • WordPress
    • Yahoo Buzz
    • Yahoo Mail
    • Yahoo Messenger
    • Share/Bookmark

    Related Posts:

     
  • Adding a new IP to eth0 eth0:0

    My server has multiple failover IP addresses.

    Mainly so I don’t forget, here is how to add a new failover IP under ubuntu (and I would assume any debian based distribution of linux):

    ssh into the server

    sudo jed /etc/network/interfaces  (jed or whatever your editor of choice is)

    find the line that starts

    auth lo eth0

    and add the eth0:0 (or whatever) part to that line

    Mine now reads

    auto lo eth0 eth0:0 eth0:1

    You now need to add the virtual eth port.

    For this you need the new IP (I will use 192.168.1.22 in my example)

    You will also need to call the new port something (I will use eth0:0)

    You also need the broadcast address (I will use 192.168.1.255)

    You will also need the netmask (this is generally 255.255.255.0)

    You will also need the network (I will use 192.168.1.0)

    iface eth0:0 inet static

    address 192.168.1.1

    netmask 255.255.255.0
    broadcast 192.168.1.255
    network 192.168.1.0


    Save the file, exit back to bash and type
    /etc/init.d/networking restart
    wait a short time for the network to update and you should be able to ping the new IP.



    The following is unaffiliated with labby.co.uk
    • AIM
    • Bebo
    • Delicious
    • Digg
    • Blogger Post
    • BlogMarks
    • Facebook
    • Google Bookmarks
    • Google Buzz
    • Google Gmail
    • Hotmail
    • Identi.ca
    • LiveJournal
    • Linkatopia
    • MySpace
    • Slashdot
    • Shoutwire
    • Sphere
    • StumbleUpon
    • Technorati Favorites
    • TechNet
    • Twitter
    • TypePad Post
    • Webnews
    • Yahoo Bookmarks
    • WordPress
    • Yahoo Buzz
    • Yahoo Mail
    • Yahoo Messenger
    • Share/Bookmark

    Related Posts:

     
  • Software I ship across Europe

    As part of my attitude towards open source software I burn and ship CDs and DVDs across Europe.

    My fee for United Kingdom is 2 GBP per disc, this includes shipping and packaging.

    For Europe I charge 3.81 GBP per disc, this includes shipping and packaging.

    If you would like a disc then feel free to contact me directly or visit my ebay page listing my auctions:

    United Kingdom: http://myworld.ebay.co.uk/ubuntudvds or http://shop.ebay.co.uk/ubuntudvds/m.html

    Europe: http://www.ebay.eu/ and choose your country, then search for member ubuntudvds

    Software available:

    • ubuntu 9.10 Karmic Koala i386 32 bit desktop live CD
    • ubuntu 9.10 Karmic Koala i386 32 bit desktop live DVD
    • ubuntu 9.10 Karmic Koala AMD64 64 bit desktop live CD
    • ubuntu 9.10 Karmic Koala AMD64 32 bit desktop live DVD
    • ubuntu 9.10 Karmic Koala i386 32 bit alternate CD
    • ubuntu 9.10 Karmic Koala AMD64 64 bit alternate CD
    • ubuntu 9.10 Karmic Koala i386 32 bit server CD
    • ubuntu 9.10 Karmic Koala i386 32 bit server DVD
    • ubuntu 9.10 Karmic Koala AMD64 64 bit server CD
    • ubuntu 9.10 Karmic Koala AMD64 32 bit server DVD
    • ubuntu 9.10 Karmic Koala AMD64 32 bit alternate CD
    • ubuntu 9.10 Karmic Koala powerpc/PS3 CD
    • ubuntu 9.04 Jaunty Jackalope i386 32 bit CD
    • ubuntu 9.04 Jaunty Jackalope i386 32 bit DVD
    • ubuntu 9.04 Jaunty Jackalope AMD64 64 bit CD
    • ubuntu 9.04 Jaunty Jackalope AMD64 64 bit DVD
    • ubuntu 9.04 Jaunty Jackalope i386 32 bit server CD
    • ubuntu 9.04 Jaunty Jackalope i386 32 bit server DVD
    • ubuntu 9.04 Jaunty Jackalope AMD64 64 bit server CD
    • ubuntu 9.04 Jaunty Jackalope AMD64 64 bit server DVD
    • ubuntu 9.04 Jaunty Jackalope powerpc/PS3 CD
    • ubuntu 8.10 Intrepid Ibex i386 32 bit live CD
    • ubuntu 8.10 Intrepid Ibex i386 32 bit live DVD
    • ubuntu 8.10 Intrepid Ibex AMD64 64 bit live CD
    • ubuntu 8.10 Intrepid Ibex AMD64 64 bit live DVD
    • ubuntu 8.10 Intrepid Ibex i386 32 bit server CD
    • ubuntu 8.10 Intrepid Ibex i386 32 bit server DVD
    • ubuntu 8.10 Intrepid Ibex AMD64 64 bit server CD
    • ubuntu 8.10 Intrepid Ibex AMD64 64 bit server DVD
    • ubuntu 8.10 Intrepid Ibex powerpc/PS3 CD
    • ubuntu 8.04 Hardy Heron i386 32 bit live CD
    • ubuntu 8.04 Hardy Heron i386 32 bit live DVD
    • ubuntu 8.04 Hardy Heron AMD64 64 bit live CD
    • ubuntu 8.04 Hardy Heron AMD64 64 bit live DVD
    • ubuntu 8.04 Hardy Heron i386 32 bit server CD
    • ubuntu 8.04 Hardy Heron i386 32 bit server DVD
    • ubuntu 8.04 Hardy Heron AMD64 64 bit server CD
    • ubuntu 8.04 Hardy Heron AMD64 64 bit server DVD
    • ubuntu 8.04 Hardy Heron powerpc/PS3 CD
    • openoffice.org 3.1.1 linux US English CD
    • openoffice.org 3.1.1 Mac OSX Intel US English CD
    • openoffice.org 3.1.1 Solaris US English CD
    • openoffice.org 3.1.1 Windows 32 bit US English CD
    • openoffice.org 3.1.1 all platforms US English DVD


    The following is unaffiliated with labby.co.uk
    • AIM
    • Bebo
    • Delicious
    • Digg
    • Blogger Post
    • BlogMarks
    • Facebook
    • Google Bookmarks
    • Google Buzz
    • Google Gmail
    • Hotmail
    • Identi.ca
    • LiveJournal
    • Linkatopia
    • MySpace
    • Slashdot
    • Shoutwire
    • Sphere
    • StumbleUpon
    • Technorati Favorites
    • TechNet
    • Twitter
    • TypePad Post
    • Webnews
    • Yahoo Bookmarks
    • WordPress
    • Yahoo Buzz
    • Yahoo Mail
    • Yahoo Messenger
    • Share/Bookmark

    Related Posts:

     
2 visitors online now
2 guests, 0 bots, 0 members
Max visitors today: 2 at 09:25 am UTC
This month: 4 at 09-03-2010 07:30 am UTC
This year: 48 at 04-04-2010 10:07 pm UTC
All time: 48 at 04-04-2010 10:07 pm UTC
programming-protein
programming-protein
programming-protein
programming-protein
impressive
impressive
impressive
impressive