October 2012
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

October 2012
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

NAGIOS

Nagios

Firewall and SElinux is Disable

Server IP :- 192.168.0.10 Hostname :- shashi.example.com Client IP :- 192.168.0.11 Hostname :- client.example.com 1.Package Requirement :- # yum install httpd php # yum install gcc glibc glibc-common # yum install gd gd-devel 2.Create Nagios user and group :- # useradd -m nagios # passwd nagios # usermod […]

password protected directory in tomcat

How to protect a web directory with a password? if we are using Apache, we can do it easily with .htaccess. It will prompt user for credentials while entering the directory. But how to protect a directory with password in tomcat web server? In this post we will discuss how to do it with tomcat […]

Configuring multiple domains or sub-domains in tomcat

We all know how to create multiple domains in Apache. By adding virtual host etries. But how to configure multiple domains in tomcat? We can do this by adding multiple Host tags in server.xml. Its very simple. See the example below. Edit server.xml under conf directory. Suppose you want to setup three domains domain1.com, domain2.com […]

url redirection in apache using proxypass

Url redirection in Apache web server.

Here is a small example of url redirection in Apache using proxypass. I used this when I was using Apache as proxy to Apache tomcat using mod_jk.

Example: you want to forward www.yourdomain.come/abc to www.yourdomain.com/linux/commands/abc

Here is how you can do it. Open httpd.conf in your favorite editor. Add […]