Categories
HowTos Linux

Running Lighttpd and Apache on same port, same Server ( CEntOS 6 / RHEL )

In this tutorial i will tell you how to configure Lighttpd and Apache on same port 80 on same server. In our case, we have CentOS 6 on our server but you can follow this for any Linux flavor e.g Ubuntu/BackTrack Linux etc.

Requirements :

  • Two Internet Public IPs ( Configured on eth0 and eth0:0)
  • Lighttpd
  • Apache
Categories
HowTos Linux

High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd – part1

Our last post can be found here, where we described why did we chose DRBD along with heartbeat, lighttpd and NFS. It is recommended to read that first to have idea why we are setting up this.

In this article i will explain how to configure it step by step. This is copy, paste HowTo you will need to replace the IPs and other information according to your requirements.

Example scenario :

node1.hackersgarage.com - 192.168.0.61
node2.hackersgarage.com - 192.168.0.62

LAN Virtual IP for NFS Service
Virtual IP for LAN - 192.168.0.63

Internet Virtual IP for Lighttpd Service
static.hackersgarage.com - 75.127.109.111
Categories
HowTos Linux

High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd

In this article we will discuss how can you build a high availability storage solution to store your static data.

Case :
Client is running a business portal that have approx. 300-500 MB data uploads per day. There was NFS Storage server which had 500 GB drive which was running out of space. This Server was also running lighttpd web server to provide access for users to view these files.

Problems :
No Failover. (Except offline backup)
When ever server gets done, Users are unable to upload data.
Users are unable to access their data because lighttpd was also running on same server.