Apache DocumentRoot must be directory

July 15, 2013 mohancheema 0

You have created a separate partition for you htdocs folder and mounted it on /path/to/documentroot. However, when you try to start Apache you get following error ‘DocumentRoot must be directory’.

This is due to SELinux to get Apache working you have 2 ways

  1. Crude way:- disable SELinux altogether
  2. Eligible way:- set SELinux context to that directory

Disable Trace/Track in Apache HTTPD

September 30, 2011 mohancheema 0


Disabling TRACE and TRACK in Apache for PCI-related vulnerabilities like Web Server HTTP Trace/Track Method Support Cross-Site Tracing Vulnerability is surprisingly easy with the Apache web server. The main thing to keep in mind is understanding that if you are running apache and this vulnerability pops up during a scan, you can be reasonably certain that TRACK is not the problem TRACE is.

How to disable directory listing in APACHE

October 11, 2010 mohancheema 1

One of the “must do’s” on setting a secure apache webserver environment is to disable directory listing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.

No Picture

Apache connections dropped by Haproxy

October 6, 2010 mohancheema 0

Many times on RHEL, haproxy is not reliable it gives an errors while connecting to apache backend, at that time it logs the following errors into /var/log/messages

kernel: ip_conntrack: table full, dropping packet

this is related to ip_conntrack kernel module.

If found this error message into /var/log/messages need to apply following steps

No Picture

SVN Apache ADS HowTo

April 28, 2010 mohancheema 3

Subversion ADS Authentication with Apache

More and more companies are using directory services for housing their user credentials and information. Example directory services are Active Directory, eDirectory and OpenLDAP.

No Picture

Apache Tomcat Loadbalancing

April 28, 2010 mohancheema 0

This article contains step by step instructions for configuring an Apache web server which handles static content and delegates JSP (Java Server Pages) and Servlet requests to two Tomcat servers using AJP 13 connectors and a load balancing worker.

No Picture

Apache Tomcat Integration HowTo

April 28, 2010 mohancheema 0


This is to explain and understand how to integrate Apache and Tomcat to support Java Server Pages (JSP) and Servlets using Apache on your website. Although this setup worked for this particular environment, I can make no guarantees that it will work for yours, but it should with some tweaking. I have spent a lot of time gathering several resources in order to get this to work. Many portions of these resources have been deprecated and required a few workarounds. It is my intention that this tutorial will help anyone that has attempted to install such a system without success. If you find any inconsistencies within this tutorial, please notify me using the contact form.

No Picture

Nagios Installation Quick Guide

April 28, 2010 mohancheema 0


This guide is intended to provide you with simple instructions on how to install Nagios from source (code) on RHEL and have it monitoring your local machine within 20 minutes. No advanced installation options are discussed here – just the basics that will work for almost all users who want to get started. These instructions were written based on a standard RHEL 5 distribution.