on November 3, 2012 by Wolf Halton in Debian, Website Development, Comments (0)

Virtual Web Servers: Apache2 on Debian

This is a short How-To about setting up multiple domain names, or sub-domains on Debian Squeeze using Apache 2.2
The following is the actual configurations of a working server with 2 subdomains on it.
It throws an error that does not stop it from working.


#=======snippet from apache2.conf

# Include generic snippets of statements
Include conf.d/

#=======Contents of conf.d directory=======================
wolf@SERVER-01:/etc/apache2/conf.d$ ls
charset localized-error-pages other-vhosts-access-log security virtual.conf

#=======Configuration of virtual.conf=======================

wolf@SERVER-01:/etc/apache2/conf.d$ cat virtual.conf
# running virtual hosts
#
NameVirtualHost *

#======Contents of the sites-available directory============

wolf@SERVER-01:/etc/apache2/sites-available$ ls
default default-ssl legacy

#======Configuration for dev.example.net====================

wolf@SERVER-01:/etc/apache2/sites-available$ cat default

ServerAdmin wolf.halton@ lyrasis.org
ServerName dev.example.net
ServerAlias www.dev.example.net

DocumentRoot /var/www/http/

Options FollowSymLinks
AllowOverride All


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128

#========Configuration for legacy.example.net======================
wolf@SERVER-01:/etc/apache2/sites-available$ cat legacy
# This is the settings file for the legacy.example.net site


ServerAdmin wolf.halton@ lyrasis.org
ServerName www.legacy.example.net
ServerAlias legacy.example.net

# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/legacy/htdocs/

# CGI Directory
ScriptAlias /cgi-bin/ /var/www/legacy/cgi-bin/

Options +ExecCGI

# Logfiles
ErrorLog /var/www/legacy/logs/error.log
CustomLog /var/www/legacy/logs/access.log combined

Nagios Plugins 1.4.16 Installation Notes

on October 21, 2012 by Wolf Halton in Debian, Nagios, Comments (1)

Even simple things are hard when you have never done them. There is a pretty good How-to at http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html for installing Nagios, and plugins, generally. I use Debian, so there […]

Read more...

Nagios: Monitor Remote Disk Free Space

on March 19, 2012 by Wolf Halton in Linux, Network Services, Comments (6)

I was working with Nagios-3.3.1, which I love because it shows me everything I want to know and is easier than Zabbix to set up. Yes, I had to write […]

Read more...

Is Open Source For You?

on March 14, 2012 by Wolf Halton in Website Development, Comments (0)

Created by Lyrasis, a 501c(3) library association based in Atlanta GA, this site was created specifically for libraries but it is useful for other organizations when trying to understand […]

Read more...

USING THE grep UTILITY

on September 20, 2011 by Wolf Halton in Guest Blog, Comments (0)

[This was originally published by Mike Brooks as a wiki entry and I have moved it here - Wolf] USING THE grep UTILITY Since the acquisition of certain data is […]

Read more...

Installing DSpace 1.7 on Ubuntu 10.04

on August 28, 2011 by Wolf Halton in DSpace, Linux, Comments (9)

Original wiki entry by Peter Dietz. The goal of this guide is to provide a simple path that will get a user up-and-running as quickly as possible. Peter Dietz did […]

Read more...

Tuning Postgresql-9.0 with pgtune

on by Wolf Halton in Linux, PostgreSQL, Comments (4)

Presuming you have PostgreSQL-9.0 installed, you are probably running the default configuration. The default configuration is designed to work with a variety of hardware, and is tuned for the weakest […]

Read more...

Updating to Postgresql-9.0 from Postgresql-8.4

on by Wolf Halton in PostgreSQL, Comments (1)

Upgrading PostgreSQL-8.4 to PostgreSQL-9.0 on Ubuntu 10.04 Wolf Halton 8/17/2011 This is something I was working on, on our Ubuntu 10.4LTS servers.  Since I had several to do, I thought […]

Read more...

Installing OpenSRF for Evergreen-ILS

on July 14, 2011 by Wolf Halton in Linux, Open-Source Projects, Comments (3)

I am installing Evergreen-ils and getting OpenSRF installed is the second step in the journey. The Evergreen Project develops an open source ILS (integrated library system) used by approximately 800 […]

Read more...

Installing PostgreSQL 8.4 on Ubuntu 11.04

on by Wolf Halton in Open-Source Projects, PostgreSQL, Website Development, Comments (3)

I am working on getting evergreen-ils running on a test server for later use. The Evergreen Project develops an open source ILS (integrated library system) used by approximately 800 libraries.  […]

Read more...