June 20, 2013

Post: Lighttpd as reverse proxy

… this file with htpasswd utility from apache. and finally make changes related to proxy 1. Move apache from 80 port to another, e… path lighttpd=”/usr/local/lighttpd/sbin/lighttpd” and add script to autostart chkconfig –add lighttpd chkconfig –level 2345 lighttpd on That’s all. For complex apache

Post: Speedup your LAMP stack with LigHTTPD

…, ie lighttpd with FastCGI. Honestly I like this solution more – it allows you to get rid of all the fat Apache server…. Use Reverse proxy in front. You may configure other Apache server to use as reverse proxy, you may also use Squid, Lighttpd, Nginx etc… them to be directly services by reverse proxy servers could be enough. The note about LigHTTPD – I like this one in particular…

Post: Pitfall of proxying HTTP requests through Lighttpd

… requests asking for PHP files were passed down with proxy module to Apache listening on another TCP port. And so I started… far too many iterations and even though Apache and PHP handled it without much hassle, Lighttpd kept allocating memory to fit the… problems will appear with much smaller data being sent through Lighttpd proxy. For example with a PHP script for handling larger file…

Post: Are PHP persistent connections evil ?

… usually result from cases when there are many hundreds of apache children processes are running. Most of them will be just… does not need MySQL connection open. In optimal configuration with Apache talking to local MySQL installation hand having no remote network… feeding. You can place squid in front, use apache proxy module or even use lighttpd with FastCGI all can fix this problem. Lets…

Comment: Lighttpd as reverse proxy

… impression of a single domain surely using Squid in reverse proxy mode is the simplest? Get one httpd to serve both… a dedicated domain for static content, which is served by lighttpd. Apache then hosts the dynamic. sent from: fav.or.it [FID179790…

Comment: Pitfall of proxying HTTP requests through Lighttpd

…The store-and-forward nature of lighttpd is good for getting data away from the backends as … nginx proxying in front of an apache webfarm (+-25 webservers). Too my surprise however, it didn’t help at all: the apache servers… too much ram. So the result would be that when apache has processed an http request and generated the response, it…

Comment: Lighttpd as reverse proxy

We use Apache with threaded MPM as reverse proxy (and for static files) and Apache prefork MPM for serving PHP files. Big advantage… and so) for both webservers. Threaded MPM Apache has decent memory consumption and almost same performance as lighttpd with sendfile network module.

Comment: Pitfall of proxying HTTP requests through Lighttpd

Julian & Maciej, Considering your input, I will change my server setup and see how it behaves over a period of week. Dieselstation serves high res wallpapers, so probably it makes sense to serve images directly through lighttpd instead of proxying the request from apache to lighttpd.

Comment: Pitfall of proxying HTTP requests through Lighttpd

Do you think this problem would exists if the setup was reversed? Meaning, let Apache be your prime server and do the proxy forward for the static content to the lighttpd! In that case, lighttpd will not consume as much memory and will do its job efficiently.

Comment: Pitfall of proxying HTTP requests through Lighttpd

@Dieseelstation: Such a setup would be nonsense, because you would have to start a ‘big’ apache process just to proxy your static content which is served by lighttpd. Just run both on different ports and do no proxying.