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.
- Create your virtual host file in the /etc/apache2/sites-available directory called 'domuslink'
- The content of the file should look similar to the following:
<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>
- Run the following commands:
$ 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:
- Create your virtual host file in a user directory (such as /usr/local/etc/http.conf) called 'domuslink'
- The content of the file should look similar to the example above.
- You will need to include this file into your /etc/httpd/conf/httpd.conf file. At the end of the file add :
- Then run the apache reload command:
$ sudo /etc/init.d/httpd reload