You are not logged in.

#1 2005-04-30 23:31:25

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

lighttpd praise

wow. what a configurable httpd daemon. I love the idea of regexp matching based on server variables to define actions.

# deny access for all image stealers
$HTTP["referer"] !~ "^($|http://www.example.org)" {
  url.access-deny = ( ".jpg", ".jpeg", ".png" )
}

and other groovy things like

server.event-handler = "linux-sysepoll"

8)
Is it possible to fall in love with an http daemon?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#2 2005-05-01 01:26:35

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: lighttpd praise

Server Software:        lighttpd/1.3.13
Server Hostname:        nibbler
Server Port:            80
Document Path:          /
Document Length:        209 bytes
Concurrency Level:      300
Time taken for tests:   12.207599 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    99103
Total transferred:      46895984 bytes
HTML transferred:       20900209 bytes
Requests per second:    8191.62 [#/sec] (mean)
Time per request:       36.623 [ms] (mean)
Time per request:       0.122 [ms] (mean, across all concurrent requests)
Transfer rate:          3751.43 [Kbytes/sec] received
Server Software:        Apache
Server Hostname:        nibbler
Server Port:            81
Document Path:          /
Document Length:        202 bytes
Concurrency Level:      300
Time taken for tests:   25.61392 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    99045
Total transferred:      48957083 bytes
HTML transferred:       20200000 bytes
Requests per second:    3990.20 [#/sec] (mean)
Time per request:       75.184 [ms] (mean)
Time per request:       0.251 [ms] (mean, across all concurrent requests)
Transfer rate:          1907.68 [Kbytes/sec] received

yes..I do believe it is..  8)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-05-01 01:46:51

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: lighttpd praise

Wow, Impressive!
What did you use to get those test results?

Offline

#4 2005-05-01 01:57:30

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: lighttpd praise

Apache Bench. A benchmarking utility for web servers.
http://httpd.apache.org/docs/programs/ab.html

I just used the static index.html file that arch includes with Apache. I modified it slighty to say lighttpd, and included the same standard static file in my lighttpd package. I used those for the above test.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2005-05-01 04:01:30

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: lighttpd praise

<rambling>
more lighttpd fiddling.

I got lighttpd to run in a chroot (system chroot), while itself being chrooted (C call to chroot) ..lol!

a jail within a jail. Now I just need to get it to run as a fake user inside the inner jail.
:shock:  wink

With a similar setup, it would be possible to have a lighttpd instance for each seperate utility on the system requiring web service. (one for each user dir). ie, all users are chrooted, and they can additionally run a chrooted web instance from their own directory.

Would be kinduv silly/fun, but I don't know if I would ever do it in practices...

</rambling>


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2005-05-01 10:33:56

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: lighttpd praise

Does it have PHP and MySQL support too?


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#7 2005-05-01 12:41:52

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: lighttpd praise

It has genuine FastCGI support.

Haven't tried to have a static connection to a mysql server. But with the setup I have in mind that wouldn't require interaction with the httpd... Atleast not on a level that require to have a certain httpd.

BR,
klapmuetz


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

#8 2005-05-02 03:58:46

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: lighttpd praise

yes it has PHP support, and mysql support is independant of the web server in use.

Offline

#9 2005-05-02 19:34:58

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: lighttpd praise

the server is great. hope soon it will be in repos

Offline

#10 2005-05-02 19:52:14

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: lighttpd praise

it's in AUR, and the AUR package is being hosted in my repo... if you want to try it out

Also, I have packaged trac ( checkout http://trac.lighttpd.com ), and it's there too (has about 30 obscure depends and is kinda bitchy to setup... but it's great:
this is running through lighttpd:
http://phrakture.homelinux.net/cgi-bin/trac.cgi

Offline

#11 2005-05-05 04:44:44

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: lighttpd praise

i did more benchmarking with pre-spawned fcgi php instances. Wow. What a way to scale.
I could envision a dedicated fcgi server handing a tremendous amount of connections on behalf of a lighttpd server.

anyway, here is the latest..
here

w00t. Just got a fcgi-php rc.d script working. I can start the php-fcgi instances using an init script now, and stop and restart.
The stop is just a killall php right now, kind of brutal, but it works.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB