Install Mod Vhost Alias Ubuntu

Install Mod Vhost Alias Ubuntu Average ratng: 9,4/10 4248 reviews

The modules in apache are known as Dynamic Shared Objects (DSOs). An example of commonly used module is modperl, which is used to increase Perl CGI script execution speed by embedding Perl interpreter in the running httpd process. LoadModule vhostaliasmodule modules/modvhostalias.so LoadModule negotiationmodule modules/modnegotiation.

Apache is usually suitable out of the box for most common used. The apache structure under debian based systems is actually really well made as it is really easy to activate or deactivate module.

This how-to will show how to activate or deactivate available modules under a debian system running apache2.

1. How it works

There is 2 kinds of modules used by apache:

  • Modules compiled in
  • Modules that are loaded when you launch apache

In order to check which modules were compiled in with apache, you can type the following command: Hc verma physics volume 1 pdf download windows 10.

This list correspond to the modules compile with apache on an Ubuntu Dapper system. As you can see, there is no php, rewrite…. modules compiled in. Those modules are meant to be included when running apache.

Now, let check the main apache configuration file, namely /etc/apache2/apache2.conf, around line 115, you can see those 2 lines:

As you can see, apache load any files ending with .load first and .conf after, in /etc/apache2/mods-enabled/.

Now, let’s have a look in that directory:

As you can see, I have cgi, actions, php5, userdir and rewrite modules enabled. This allow me to run an php5 scripts in /home/user/public_html using rewriting rules.

Going further up into the investigation, we can see that files in mods-enabled are not actually files, but links to files contained in mods-available:

Now, let’s have a look at /etc/apache2/mods-available:

This basically contains all the files linked by mods-enabled plus a whole load of available modules.

Now, let see how to add a module.