Which (virtual) host was visited? Tuning Apache log files, and Python analysisWe host a number of domains on our main server, and in order to avoid fragmentation of log files, we keep a sinle composite log. Rather than use a standard logfile format henceforth, I've changed the second field to carry the virtual host name accessed for the request, as that was missing up until this ...

Telling which ServerAlias your visitor used - useful during merging domainsSomeone tells you a website to visit - "go to wellhousemanor.co.uk" they say. And you'll naturally add "www." in front of it, calling up www.wellhousemanor.co.uk rather than wellhousemanor.co.uk ... or perhaps you won't.
Web servers are normally set up by default to respond to a single specific host ...

Virtual Hosting with Apache http server - an overall scheme, and avoiding common pitfallsDuring many of our courses, I write code snippet examples and add them to our website so that the delegates can refer back to them later - and they also form an ongoing resource for others who happen to be looking for examples. But on our Linux Web Server (LAMP) courses, there's far less original code ...

Virtual Hosts and Virtual ServersDo you want to use a single computer to host many different web sites? There are no less than four quite common ways of doing this - each of which has its advantages and disadvantages.
At the top left of my diagram, you have virtual hosting. In this arrangement, all the domains hosted on a single ...

Virtual Hosting on Apache httpd - a primer exampleA single web server computer, running a single Apache httpd daemon, can serve many domains through virtual hosting - usually "named virtual hosting" which allows a single IP address to be used for all the different domains.
Here is how it works ...
• you set up all your defaults in the main httpd.conf ...

Adding Virtual HostsIf you're running your own server and want to look after multiple domains, you can easily do so using Apache httpd's Virtual Hosting. It's as easy as 1-2-3-4 ...
1. Create new host names in your DNS
2. Create home directories and a test index.html
3. Set up virtual hosts in httpd.conf (redhat) or vhosts.xxxx.conf ...