Apache 2.2.x configuration

This section is to give a little understanding of the basic ocnfiguration of Apache 2.2 for domus.Link.

Apache has the concept of Virtual Hosts and this is the best and easiest way to configure domus.Link served through your webserver.

This example is tested under Ubuntu 9.x and 10.04 and should apply to other distributions using Apache 2.2.x that use the "sites-available" directory method with a2ensite/a2dissite commands:

Assumption is that domus.Link is installed to directory /var/www/domus.Link. And that domus.Link is only web service that will be offered.

<VirtualHost *:80>
    DocumentRoot /var/www/domus.Link
</VirtualHost>

If multiple sites maybe installed on your server, you may need to alias the path in the virtual host.

NameVirtualHost *:80
<VirtualHost *:80>
<IfModule mod_alias.c>
	Alias /domus.Link [some path to]/domus.Link
</IfModule>
        <Directory "[some path to]/domus.Link">
        	DirectoryIndex index.php
                AllowOverride None
                Options ExecCGI -MultiViews FollowSymLinks Includes Indexes
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
$ sudo a2dissite default 
$ sudo a2ensite domuslink
$ sudo /etc/init.d/apache2 reload

This example is tested under CentOS 5.5 with Apache 2.2.3 and can apply to other distributions with similar setup:

...... 
Include /usr/local/etc/httpd.conf/domuslink
$ sudo /etc/init.d/httpd reload