Apache2 on Ubuntu

I was installing Trac on Ubuntu the other day and I was really impressed with the new (well new as far as I’m concerned) Apache file layout.

In order to load modules you no longer have to add a LoadModule directive to the main config file. Instead, when you install a module using apt-get a file call <module_name>.load is created in the directory /etc/apache2/mods-available. If the module has any configuration associated with it then a seperate file called <module_name>.conf is also created in the same directory. To enable the module you create a symbolic link to each of these two files in the directory /etc/apache2/mods-enabled. When Apache starts it simply includes all the files in this directory. The commands a2enmod and a2dismod can manage all this for you if you don’t want to create/remove the links yourself, e.g. sudo a2enmod userdir, sudo a2dismod userdir.

Virtual hosts are managed in a very similar fashion. To create a new virtual host create a file in the directory /etc/apache2/sites-available containing the VirtualHost directive. To enable this host you create a symbolic link to this file in the directory /etc/apache2/sites-enabled. The commands a2ensite and a2dissite can manage all this for you, e.g. sudo a2ensite subversion.

  • http://www.mneylon.com/blog Michele

    Yeah – it’s very cool. Debian uses the same setup and it makes managing modules and vhosts so much simpler

  • http://www.mneylon.com/blog Michele

    Yeah – it’s very cool. Debian uses the same setup and it makes managing modules and vhosts so much simpler

  • Andy

    Hi, i was hoping you could help me, i am trying to install Trac on my Ubuntu 5.10 (breezy), and i cant seem to get it to install correctly.

    I was hoping you could lend a hand. quick info on the server:

    -it is a intranet testing server, i.e. no domain-name associated with it.
    -i installed all the packages, via apt-get
    -(i think the problem is how to configure the trac(.conf) file that is read by as an apache2 vitural host.

    I hope you can help me, thanks in advance,

    Andy

  • Andy

    Hi, i was hoping you could help me, i am trying to install Trac on my Ubuntu 5.10 (breezy), and i cant seem to get it to install correctly.

    I was hoping you could lend a hand. quick info on the server:

    -it is a intranet testing server, i.e. no domain-name associated with it.
    -i installed all the packages, via apt-get
    -(i think the problem is how to configure the trac(.conf) file that is read by as an apache2 vitural host.

    I hope you can help me, thanks in advance,

    Andy

  • Pingback: www arcticbet net

  • Pingback: en ligne winning at daily keno simulator

  • Pingback: lowest price insurence car badgermutual com in orlando florida armada

  • Pingback: locate low rate of health on line blue cross insurance company of rochester ny

  • Pingback: cheapest auto ins on line meadowbrook insurence company ottawa ontario tl

  • Pingback: www holiday net

  • Pingback: en ligne pokeri wager directions