Chapter 11: Tomcat and Apache HTTP Server Here,

Chapter 11: Tomcat and Apache HTTP Server Here, $APACHE_HOME is the install location of your Apache2 distribution, and this is the /usr/local/ apache2 directory by default on most Linux distributions. Executing this command prints all modules included with your Apache binary; check if this includes mod_ssl. In the unlikely event that you don t already have mod_sslsupport, you can download and build the binaries yourself. Download the Apache Web server source code from one of the mirrors at the URL: http://httpd.apache.org/download.cgi As mentioned earlier, this example uses Apache 2.2.4, and the download file is httpd-2.2.4.tar.gz. Note that your Linux installation must also have the development packages installed because the compilation depends on the gcccompiler. Next, unarchive the Apache server distribution into a working directory: $ tar zxvf httpd-2.2.4.tar.gz Now, change the directory to the source directory and configure the mod_sslmodule, together with any other modules that you need, using the commands. $ cd httpd-2.2.4$ ./configure –enable-ssl=shared –enable-proxy=shared –enable-proxy-ajp=shared –enable-proxy-balancer=shared The shared value in the command indicates that the module should be built as a DSO loadable library, instead of statically compiled. This command enables the following modules: . mod_ssl . mod_proxy . mod_proxy_ajp . mod_proxy_balancer In general, to enable any Apache module, use an –enable- option. If there are any underscores in the module name, replace them with hyphens. By default, the compilation assumes that Apache Web server is installed in /usr/ local/apache2. If you wish to change this, use –prefix=/path-to-yourinstallation- directory. This configuration takes a little while to complete as it checks for dependencies and generates a make file. After this configuration, you are ready to compile the source code. Use the command: $ ./make This compilation and linking takes a few minutes on most machines. Finally, you can install the compiled Apache server using the following command: $ ./make install

For high quality jboss hosting services please check jboss web hosting website.

Comments are closed.