You are not logged in.
Pages: 1
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
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
Wow, Impressive!
What did you use to get those test results?
Offline
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
<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:
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
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
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
yes it has PHP support, and mysql support is independant of the web server in use.
Offline
the server is great. hope soon it will be in repos
Offline
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
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
Pages: 1