lighttpd

Why use Apache over NGINX/Cherokee/Lighttpd?

Apache has been the de facto standard web server for over a decade, but recent years have brought us web servers that consume less RAM and handle many more requests per second using fewer threads and asynchronous i/o. In my opinion, I also find the configuration of these servers to be more straightforward and minimal. Why do people use ...

What is the easiest way to front my grails application with LightHTTPD during development?

I'm not familiar with LightHTTPD and haven't been able to find any guides on how to configure this. I attempted reading the docs and configuring it a while back but failed.... What is the easiest way to front my grails application in development with LightHTTPD"? ...

Is possible to intercept a request for a nonexistent file with lighttpd?

Is it possible to configure lighttpd so that a request for a file succeeds if the file exists, but is handled and redirected, for example to a cgi script, if the file does not exist? What I'm trying to achieve is having a set of image files on disk which are generated by a script and served directly. On a request, if the file does not e...

Lighttpd: How to password-protect URLs matching regex

Hi, Is there a convenient way to password-protect URLs which match a certain pattern in Lighttpd? I thought about matching regex, but any other creative solution will be nice. NOTE : I'm not looking for a way to password-protect a directory, beacuse the URLs I want to protect aren't confined to a certain directory structure. Adam ...

Serving files with Django and lighttpd

I'm trying to create a simple way of serving downloadable content with Django. The idea is that logged in users shall be able to download (rather large) files through lighttpd. There are several posts about this here on SO and I came also across a blog post with a simple solution. I created a view as in the abovementioned link (and add...

How to load test website with SWF Flash file?

I have a website that has a SWF embbeded on it with SWFObject. This SWF file has 1,5 MB. I would like to test if website (Lightppd) will be alive if 600 users per hour will try to open it. It will be approx. 900 MB / hour of transfer. So I have 2 questions in one: 1) Does ab (Apache Bench) test handle SWFObject and gets SWF file while...

Django + lighttpd + fcgi performance

I am using Django to handle fairly long http post requests and I am wondering if my setup has some limitations when I received many requests at the same time. lighttpd.conf fcgi: fastcgi.server = ( "a.fcgi" => ( "main" => ( # Use host / port instead of socket for TCP fastcgi "host" => "127.0.0.1", "port" => 303...

lighttpd configuration $HTTP["host"]

I am trying to configure my lighttpd server to use a fastcgi module. The recipe I am following ( blindly ) calls for the following line in lighttpd.conf $HTTP["host"] =~ "(^|\.)example\.com$" { I am running on a virtual private server, and I do not have a domain name, just an IP. So I assume that I have to replace the domain name wi...

Django(postgresql) + lighttpd. Any issues with threading and python's postgresql driver?

I'd like to deploy my Django app (which uses postgresql as database) on lighttpd using FastCGI. For postgresql i see that Django has 2 backends available 'postgresql_psycopg2' and 'postgresql'. My question is that lighttpd being a threaded server are there any issues with any of this backends? Are they thread safe? And which one of them ...

lighttpd in Amazon s3

Im planning to host my site in Amazon s3. Is it possible to stream videos using lighttpd streaming server? ...

Compilation failed for Lighttpd 1.4.26 on Lenny AMD64.

Hello, yesterday I tried to compile Lighttpd 1.4.26 + mod_h264 on Debian Lenny ( AMD64 ) but it failed. I got those errors : mail:/usr/src/lighttpd/lighttpd-1.4.26# make make all-recursive make[1]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26' Making all in src make[2]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26/sr...

How to design single page application in javascript to work in environment mode?

I'm developing single page application in javascript and consume data from RESTful web service. I host it on simple lighttpd web server. I want to have different url for consuming data by environment like development mode points to my local web service and production mode point to online webservice. ...

How do you get Lighttpd to compress CodeIgniter's "clean urls"?

I was looking at PageSpeed on my test website and noticed that Lighttpd wasn't compressing my HTML (but was compressing my javascript and css files). I'm assuming this is because I'm using CodeIgniter and it's clean url system and since the requests don't have file extensions, Lighttpd doesn't have the rule to compress it. That being the...

User specific URL Redirection With Lighttpd

Apache web hosts have a user-configurable ~/.htaccess file that allows local redirects, for example, www.awesomesite.com => www.awesomesite.com/launchmyawesomeapp.cgi In lighttpd I know there is a global /etc/lighttpd.conf file, but is there something local like the Apache htaccess file? thanks, joe ...

How to setup Lighttpd as a proxy for cross-site requests?

I want to setup my lighttpd server to proxy some requests (for ex. RSS requests) to other domains so i can fetch data using javascript. For example i'd like to fetch Atmo feed from internal Redmine (say http://code.internal.acme) to developer dashboard (say http://dashboard.internal.acme). I'd like to fetch it using JavaScript but i cant...

Pretty automatically updating lighttpd server status

I am trying to use your modified lighttpd server-status. server-status mod is enabled and running, I am geting lighttpd status but I can not use yours becouse I can not use port 80 again: $SERVER["socket"] == "192.168......:80" { status.status-url = "/server-status" server.document-root = "/var/www/status" mimetype.assign = ( ".html" =>...

what is the best setting for using lighttpd on 8G ram?

I have running 8GB ram and 8 x Xeon 3361 system! What is the best setting for running simultaneous connection! What is the maximum? Is setting like this correct? server.max-keep-alive-requests = 0 server.max-keep-alive-idle = 10 server.max-read-idle = 60 server.max-write-idle = 60 server.event-handler = "linux-sysepoll" server.max-fds...

Why does my server hang when I call a page over files_get_content?

I am trying to get content from a wordpress installation on a subdomain of my server. I tried that with file_get_content and also with Zend_Http_Client. $client = new Zend_Http_Client(Zend_Registry::get('CONFIG')->static->$name->$lang); $content = $client->request()->getBody(); As long as I run in on my localhost, it works fine. As so...

Why would Django fcgi just die? How can I find out?

I'm running Django on Linux using fcgi and Lighttpd. Every now and again (about once a day) the server just dies. I'm using the latest stable release of Django, Python and Lighttpd. The only thing I can think of is that my program is opening a lot of files and executing a lot of external processes, but I'm fairly sure that side of thing...

Getting rid of index.php in the URL when using recess framework and lighttpd

I am using the recess php framework with lighttpd Does anyone know how I can use the shorter urls of: http://www.myserver.com/recess Instead of: http://www.myserver.com/index.php/recess The recess readme file says that if I have mod_rewrite I can use the shorter url: -- "Do you have mod_rewrite? -- Yes: Open your browser to the...