How to Run Apache and lighthttpd on port 80
We need to have 2 IP in the server then only we can run both apache and lighthttpd on the same port. Assume that you have already installed both apache and lighthttpd in the server.
Lighthttpd will help to increase the speed with a small memory consumption.
Go to apache configuration and locate Listen directive.
Here, Add “Listen” directive to all IP addresses of the server, except the IP for lighthttpd.
Now, restart apache and then lighthttpd.
How to do this in WHM/cPanel.
Instead of modifying the file manually you need to exclude the IP address for lighttpd at
Reserved IPs Editor: By default, Apache is configured to listen on all available IPs. Apache can be configured to only respond on specific IPs. This editor provides an interface to specify the Apache IP restrictions. To reserve new IPs not found in this list, please add the IP to the server first.
You can try to access IP in browser and make sure both are listening on port 80.
Leave a Reply
You must be logged in to post a comment.