July 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

July 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Mod Proxy Security to protect the page

Mod Proxy Security to protect the page <IfModule mod_proxy.c> ServerName rmohan.com ProxyRequests On SSLProxyEngine on ProxyVia On <Proxy https://dev.rmohan.com/web/app/app1*> Order deny,allow Allow from all </Proxy> ProxyPass web/app/app1 https://dev.rmohan.com/web/app/app1 ProxyPassReverse web/app/app1 https://dev.rmohan.com/web/app/app1 <Proxy https://dev.rmohan.com/web/CVS*> Order deny,allow Deny from all </Proxy> <Proxy https://dev.rmohan.com/web/app/app1/CVS*> Order deny,allow Deny from all </Proxy> </IfModule>

LVM in linux

LVM in linux

Logical Volume Management[LVM]

LVM is a logical volume manager for the Linux kernel; it manages disk drives and similar mass-storage devices, in particular large ones. The term “volume” refers to a disk drive or partition. Every system contains Physical Volums[PV]. Such as hard disks, partitions or external storages. Volume management treats PVs […]

Recovery of deleted /etc/passwd File in Linux

Recovery of deleted /etc/passwd File in Linux In that case you need to recover /etc/passwd file first. For this you have to following steps, -Start GRUB on boot (press ESC while booting) -Press e over (recovery mode) -Press e over the line beginning with kernel -Press Space bar and enter “init=/bin/bash” -Press enter -Press b […]

How to secure reverse proxy or Forward proxy

How to secure reverse proxy or Forward proxy

 

ProxyPreserveHost On

<Proxy *> Order deny,allow Allow from all </Proxy>

ProxyPass /gonvaled/examples/jsonrpc/output/services/ http://localhost:8000/services/ ProxyPassReverse /gonvaled/examples/jsonrpc/output/services/ http://localhost:8000/services/

<IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email.

ProxyRequests Off <Proxy *> AddDefaultCharset off Order Allow,Deny Allow from […]

Linux Commands

To view System Resource Information uname –help uname -r grep model /proc/cpuinfo grep MemFree /proc/meminfo sudo -u root lastcomm -f /var/account/pacct cat /proc/version # cat /proc/cpuinfo # cat /proc/meminfo # cat /proc/zoneinfo # cat /proc/mounts cat /etc/redhat-release grep MemTotal /proc/meminfo grep SwapTotal /proc/meminfo df -k /tmp grep “model name” /proc/cpuinfo ifconfig (/sbin/ifconfig) uaname -r lshal:detected […]

Mount Points and /etc/fstab

Mount Points and /etc/fstab

/etc/fstab is referenced each time the system boots. It consists fields like device name, mount point, file system type, fsck order like 0 = ignore, 1=fist, 2-9 = second, and third, etc. After the filesystem is created in /etc/fstab, it’s important to use the mount-a to mount the filesystem just created […]

Monitor Your System Performance

Monitor Your System Performance in Linux

 

@server ~]# uptime 13:14:02 up 1:30, 2 users, load average: 0.04, 0.26, 0.27

[root@server ~]# ps -eo %u | sort | uniq -c | sort -rn

[root@server ~]# sar -c ## Process/sec Linux 2.6.18-164.el5 (server.scratch.com) 08/24/2011

11:50:01 AM proc/s 12:00:01 PM 6.87 12:10:01 PM 6.90 12:20:01 PM 7.10 […]

Learn MySQL

Learn MySQL How To Connect MySQL Database Tutorial Example

Open your MySQL Client tools then copy & paste the below code to Connect to MySQL database server

— mysql.exe location: c:\xampp\mysql\bin\mysql.exe — host: localhost — username: root — password: *** — modify your host location, username, password accordingly. — i am using dos prompt as […]

Java in Centos

Install java in centos

1. Download bin file using below command

wget http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-i586.bin

If the link is not working, Please use the below link, If you need latest one download it.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. After download complete it look like

jdk-6u26-linux-x64.bin?e=1312191174&h=c5f0b98f8ea25aca97f3b53be8497570

so we need to rename the file using below command,

mv jdk-6u26-linux-x64.bin?e=1312191174&h=c5f0b98f8ea25aca97f3b53be8497570 jdk-6u4-linux-x64.bin

[…]

Logrotate

Logrotate is the default and easiest log management tool around. It is shipped by default with most of the major Linux distributions. Logrotate can help you to rotate logs (in other words, it can create a separate log file per day/week/month/year or on the basis of size of log file). It can compress the older […]