lighttpd

Limit upload speed for testing on lighttpd

Hi, I'm implementing ubr upload. It used Perl and PHP to upload files with a progress bar. I'm running a lighttpd development server and would like to test it fully. Currently it just transfer the files instantly since its really just moving files on my computer. Is there a way to make it seem like it actually transfers it slowly so I ca...

Need help converting apache .htaccess code to lighttpd url_rewrite code

Hi All, I have this custom written CMS built on XAMPP. I'm trying to test the same on lighttpd to benchmark the so-called performance gains... but am stuck at the rewrite rules. I use the default rewrite rules of WordPress in my .htaccess which hands all url parsing over to my script as long as there aren't any files or directories sa...

How can I redirect a Lighttpd webdav mount depending on user login

I have enabled the lighttpd mod_webdav module and set up a webdav mount point of http://website.com/webdav using the following lighttpd.conf entry: $["remoteip"] == "www.website.com" { alias.url += ( "/webdav" => "/var/www/htdocs/webdav", ) $HTTP["url"] =~ "^webdav($|/)" { dir-listing.activate = "enable" ...

Loading a PHP app/framework into memory only once possible with FastCGI?

I was under the impression that FastCGI allowed you to kinda load in your web app once, and then you just "provide" FastCGI with some function, like myHandleHTTPRequest($url), that would then be called whenever a request came. This way you'd get much better performance as your app is ready in memory all the time, right? But I'm starting...

Custom PHP FastCGI interface? (Faster?)

How do you build your own FastCGI interface in PHP? I'd like to do something similar to what they're doing in Perl, but in PHP. Is it even possible? Would it be faster? (That is, I'd like to be able to load a web app framework once into memory, and then just have FastCGI call a method I provide for every request. So not the more generi...

how do i set up a load balanced Rails web server using mongrel, lighttpd and iis on windows 2003

I understand that this is not the perfect environment for doing this but please stick with me and help if you can... The set up I want to achieve is to have my rails application running on a windows 2003 server, using a pack of mongrels with lighttpd acting as the load balancer and IIS in front of it all passing client requests to light...

Django in Lighttpd + FCGI on Ubuntu - rewrites stop working when I enable a second site

I've got lighttp configured to start and serve django via fastcgi on ubuntu. When I have only a single site enabled (via ubuntu's apache-like conf-available, conf-enabled mechanism), everything runs beautifully. When I enable a second site, my url rewrites seem to stop working correctly, though the fcgi processes are started and serving ...

expires.url configuration for static images in lighttpd

Hi all, I am trying to avoid repeated re-loading of images from my web app. I use lighttpd to serve the static content, and I have expired configured like so: expire.url = ( "/static/" => "access 1 years", "/static/images/" => "access 1 years") This seems to be working for js and css, who live in /static. But this does not really wo...

lighttpd url rewrite to subdomain

How does the lighttpd rewrite work for folowing? http://example.com/file_46634643.jpg to http://sub.domain.com/46634643.jpg If it's possible... ...

lighttpd mod_rewrite vs. apache mod_rewrite with Django and FastCGI

I am in the process of migrating from a Django FastCgi setup in Apache to one in lighttpd. On Apache, I was using the fcgi config described in the Django docs. The core part being rewriting all my non-static URLs to be /mysite.fcgi/$1: RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L] and then forwarding all requests for /mysite.fcgi for F...

Configuring lighttpd for many lightweight concurrent Keep-Alive http connections

I am using lighttpd as a front-end proxy to my custom HTTP based application server. I need to configure lighttpd for a large number (let's say around 5000) simultaneous http connections which have a large timeout and KeepAlive setting. Each connection will sit around mostly idle. Imagine an HTTP based chat server. My HTTP server is usi...

The Current State Of Serving a PHP 5.x App on the Apache, LightTPD & Nginx Web Servers?

Being stuck in a MS stack architecture/development position for the last year and a half has prevented me from staying on top of the world of open source stack based web servers recent evolution more than I would have liked to. However I am now building an open source stack based application/system architecture and sadly I do not have th...

How to install latest lighttpd PHP (fastcgi) and MySQL on centOS 5.3

yum always install old version but i want to install latest versions. Thanks. ...

How to set a cookie with a php script thats executed by Flash?

I have a flash upload script, that uses a .php file as the processor. I need the processor file to set a cookie with a gallery ID that was created by php script, and pass it on to the confirmation page. Except when Flash runs the php file... it doesnt set the cookie. It does set the session variable, which was good enough, but now Im usi...

What web server to use for Lua web development

What web server (and why) should I use for Lua web development? ...

Need help in compiling lighttpd on MacOSx

Hi. I try download lighttpd 1.4.23 source, and compile it on MacOSX 10.5.5. This is the error I am getting: $ ./autogen.sh ./autogen.sh: running `libtoolize --copy --force' ./autogen.sh: line 19: libtoolize: command not found I tried ask the same question on lighttpd forum, but I can't get any help there. Thanks in advance. ...

Starting and Stopping Another Process when Mongrel Rails starts

I would like to start another process when mongrel rails starts up. Is there a way to do this? I am looking to start lighttpd which acts as a media server on my project every time rails starts and stop it every time rails stops. ...

How to setup cookieless domain in Lighttpd?

I want to setup domain with disabled cookies, to serve static content. ...

Django and fcgi - logging question

I have a site running in Django. Frontend is lighttpd and is using fcgi to host django. I start my fcgi processes as follows: python2.6 /<snip>/manage.py runfcgi maxrequests=10 host=127.0.0.1 port=8000 pidfile=django.pid For logging, I have a RotatingFileHandler defined as follows: file_handler = RotatingFileHandler(filename, maxByt...

Memcached concurrency w/ lighttpd php

I'm having an issue with memcached. Not sure if it's memcached, php, or tcp sockets but everytime I try a benchmark with 50 or more concurrency to a page with memcached, some of those request failed using apache ab. I get the (99) Cannot assign requested address error. When I do a concurrency test of 5000 to a regular phpinfo() page. Ev...