View Single Post

  #1 (permalink)  
Old 07-15-2007, 06:16 PM
anjanesh's Avatar
anjanesh anjanesh is offline
Junior Member
User
 
Join Date: Feb 2007
Location: Mumbai, India
My distro: Fedora
Posts: 3
Rep Power: 0
anjanesh
Default Apache and lighttpd together

Hi

I recently came to know that :
Quote:
lighttpd is used by many well-known sites. The typical scenario is using lighttpd as off-load server to push out static content and leave to complex work to another server.
So does this mean that its better to have Apache running on another port, say 82 and lighttpd on 80 so that the pages are served to the client via lighttpd, but if theres a complex php script to run, use Apache instead ?

How does that work ?

index.php
PHP Code:
<html>
.....
<body>
<?php
echo simpleFunction(); // run using lighttpd
?>
<?php
echo complexFunctionATport82(); // Something like this...
?>
</body>
</html>
Or am I totally missing the point ?

Thanks
Reply With Quote