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
Apache & Lighttpd Installation :
yum install httpd lighttpd
chkconfig lighttpd on
chkconfig httpd on
ifconfig eth0 123.45.67.8 up
ifconfig eth0:0 123.45.67.9 up
You can configure these IPs in /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth0:0
Configure httpd to Listen on 123.45.67.8
vim /etc/httpd/conf/httpd.conf
Uncomment and update this line;
Listen 123.45.67.8:80
/etc/init.d/httpd restart
Configure lighttpd to Listen on 123.45.67.9
vim /etc/lighttpd/lighttpd.conf
Uncomment and update " server.bind = "
server.bind = 123.45.67.9
/etc/init.d/lighttpd restart
Related Posts:
- Installing Apache 2.4.1 from source on CentOS 6.2 Linux
- ApacheKiller flaw integrated into Armageddon’s DDoS Botnet clients
- GoAccess on rhel/CentOS 6 Linux – Real time Apache Log Analyzer
- Mod_geoip rpm for Apache installation on RHEL/Centos 6
- High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd – part1

{ 0 comments… add one now }
{ 1 trackback }