teh fear

08 Oct

apache virtual host

People often get confused as to how Virtual hosts in apache work, here’s an explanation from my understanding…

Firstly each <VirtualHost XXX> entry requires (unless there is only one virtual host) a corresponding NameVirtualHost XXX entry.

The XXX is effectively what IP address and port apache should be listening on for this set of virtual hosts.

For a lot of people this may just be ‘*’ – every IP and any port that apache is listening on.
If you are running on more than one port (http and https would be different ports) then you will probably want to specify a port too… ‘*:80′ would specify all IP addresses and port 80.
(more…)

08 Oct

resize loop disk image

Having started to play with xen on linux, I have begun to use loop filesystems (a filesystem embedded in a file) rather a lot.

Xen virtual servers are, fairly often, run from within a loop filesystem and generally start with a fairly small file (1GB is big for a normal file, but not when it is pretending to be an entire filesystem!)

Here’s a nice simple shortcut for increasing the size of a loop fs (if the filesystem is ext2/ext3) …
(more…)

© 2012 teh fear | Entries (RSS) and Comments (RSS)

Powered by Wordpress