Skip to main content

Posts

Virtual Host + Apache httpd server + Tomcat + mod_jk connector

In my last post ( Virtual Host in Tomcat ) we discussed about how setup the virtual host in Tomcat. Its cost effective technique because only one public IP is enough to host multiple domain. If we have big organization and each department want to host their website in locally in different machine. then how to achieve the virtual host concept?. In this post we will see the how we do this. Update :   I posted  Virtual Host + Nginx + Tomcat  Its easy to configure, compare to Apache httpd server Problem Scenario:         In big organization they have multiple department, each department want to host their website in different machine. so these websites are accessed locally with different local IP address. When we mapping to public address then we face the problem. We have two choice either purchase as many public address or Put one server front  and delegate these request. ...

Understanding Virtual Host Concept in Tomcat

Hi in this post we will see how to setup virtual host in Apache Tomcat server. Virtual Host is in-built feature that allows to deploy multiple website(domains) in single instance of tomcat server. The main benefit in this way is its cost effective. Scenario: I am going to deploy 3 website with following domain names in single tomcat http://www.ramki.com http://www.krishnan.com http://www.blog.ramki.com The following diagram is my outline. Outline structure of Virtual Host Concept in Tomcat Here my tomcat IP address 192.168.1.15. or any IP address allocated my ISP. but it should be public IP address. How all domain names are pointing to my Tomcat?                   When we purchase the domain name we need to update the our tomcat IP address to it. like or we can simulate same DNS Setup through hosts file in both Linux and Windows. In Linux tha file is located at /etc/hosts Now How Setup...

Understanding the GRUB boot loader and Customize the themes

In this post we will discuss the GRUB2 (GRand Unified Boot-loader) in Linux. recently i surfing the Linux base concepts then i came to know about grub2. here i ll share what is boot loader?, how grub2 boot loader is works? and how we can customize? and how we apply the themes? What is the Boot Loader             Boot loader is small code reside in MBR to load the kernel(core) of the operating system and give the control to OS. When PC is switched on the system controls goes to BIOS. Bios initialize the peripherals and check the booting order of the device then select the highest priority of the device execute the code stored in MBR of that device. Each Operating System shipped with boot loader For Example :- Microsoft Windows up to Windows XP comes with   NTLDR boot loader From Windows Vista onward they use BOOTMGR as a boot loader. These boot...

Beware of SQLInjection in Java Application

Hi In this post we will discuss what is SQL Injection attack. and how its may affect ur any  web application its use the backend database. Here i concentrate on java web application. Open Web Application Security Project(OWAP) listed that SQL Injection is the top vulnerability attack for web application. Hacker's they Inject the SQL code in web request to the web application and take the control of backend database, even that backend database is not directly connected to internet. And we will see how to solve and prevent the SQL Injection in java Web Application. For this purpose we need 1 tools. these tool are completely open source. SQL Map - SqlMap is an open source penetration testing tool that automates the process of detecting and exploiting SQL Injection. we can get it from here . SQLInjection       SQL injection is the technique to extract the database information through web application. Scenario: we have one database server [MySQL] and web ...

JSF + JPA + JasperReports (iReport) Part 1

Hi in this post we will see the overview of  JasperReports  and how to integrate into JSF application. JasperReports is the world's most popular open source reporting engine. It is entirely written in Java and it is able to use data coming from any kind of data source and produce pixel-perfect documents that can be viewed, printed or exported in a variety of document formats including HTML, PDF, Excel, OpenOffice and Word.  In Primeface  library also use this JasperReports to generate the PDF, CSV and DOC formats with single line of code. see here . but its not flexible and we cant change template. so here we see the how to use JasperReports for create the template and integrate  JSF 2.0. We are using iReport tool for crating template. Download JasperReports and iReport Jasper Reports download from here . This zip contain jasper library and its dependencies and lots sample codes. iReport download...