Category Archives: Apache

Apache HTTP Authentication

This covers how to protect parts of a website in Apache using the .htaccess files. To use .htaccess files, you need to enable it in the server configuration by specifying the directive AllowOverride AuthConfig, typically within the <Directory> section. <Directory … Continue reading

Posted in Apache, Security | Tagged , | Comments Off

Configuring Apache for SSL Support

SSL stands for Secure Sockets Layer and TLS stands for Transport Layer Security. They are a family protocols that were originially designed to provide security for HTTP transactions, but can also be used for other internet protocols. The following will … Continue reading

Posted in Apache, Security, Ubuntu | Tagged , , | Comments Off

Integrating Tomcat and Apache with mod_jk Connector

Using the mod_jk connector is an alternative but more complex method of integrating Tomcat and Apache together. The concept behind this method is to have Apache serve the static content of the website, and Tomcat to serve the Java related … Continue reading

Posted in Apache, Tomcat, Ubuntu | Tagged , , | Comments Off

Apache Log File Rotation

The log files for Apache can typically grow very large, and it sometimes necessary to periodically rotate the log files by moving or deleting the existing logs. Apache is capable of writing log files through a pipe to another process, … Continue reading

Posted in Apache, Ubuntu | Tagged , | Comments Off

Integrating Tomcat and Apache Using Proxy

This easiest way to integrate Tomcat and Apache together is to have Tomcat run behind Apache which behaves like a proxy server. Enable the proxy module for Apache. $ a2enmod proxy $ a2enmod proxy_http (To allow Apache to forward to … Continue reading

Posted in Apache, Tomcat | Tagged , | Comments Off