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