Questions tagged [lighttpd]

Lighttpd is a lightweight and high-performance event-driven web server.

Lighttpd is a lightweight and high-performance event-driven web server.

1125 questions
42
votes
3 answers

socket: Too many open files (24) Apache bench lighttpd

When I start Apache Bench test: ab -n 10000 -c 1300 http://example.com/test.php I get error: socket: Too many open files (24) When I change it to '-c 1000' it works fine. Because I can have more than 1000 concurrent users I would like to fix…
Tom Smykowski
  • 25,487
  • 54
  • 159
  • 236
37
votes
2 answers

Autotools: how to cleanup files created by "./configure" in lighttpd project?

I'm trying out lighttpd for an embedded Linux project. I got the latest source package and started writing a master Makefile encapsulating all configure, compile, install (for testing) etc stuff. And vice-versa, I want to cleanup every step. After…
Andi
  • 888
  • 2
  • 10
  • 24
35
votes
6 answers

What web server to use for Lua web development

What web server (and why) should I use for Lua web development?
TimH
27
votes
4 answers

Failed requests by length in my ApacheBench load test result

I have a website in PHP, Lighttpd. It uses also MySQL on Centos 5. I've tested my PHP with code below with Apache Bench (ab). It resulted in some errors (Failed Requests) indicating other length than normal. I'm absolutely sure that my PHP result…
Tom Smykowski
  • 25,487
  • 54
  • 159
  • 236
21
votes
2 answers

lighttpd as reverse-proxy

DeviceA serves as a reverse-proxy and is supposed to forward requests as follows: 192.168.1.10/DeviceB ==> 192.168.1.20/index.html 192.168.1.10/DeviceC ==> 192.168.1.30/index.html Both index files are located under /var/www and are static "Hello…
impf
  • 221
  • 1
  • 2
  • 4
20
votes
6 answers

Lighttpd 403 Forbidden for PHP files

I've just installed lighttpd on my dedicated server, mod_fastcgi is enabled, so I've appended the following lines to the lighttpd.conf file: fastcgi.server = ( ".php" => ( "localhost" => ( "socket" =>…
Scott
  • 5,991
  • 15
  • 35
  • 42
18
votes
1 answer

CORS request across different ports did not succeed on Firefox but works on Chrome

I'm making CORS requests from https://169.254.128.2:8443 to APIs served on https://169.254.128.2:8444 by lighttpd server. Lighttpd has CORS enabled with the following response headers but the OPTIONS request does not go through on…
Varsha Venugopal
  • 183
  • 1
  • 1
  • 6
17
votes
2 answers

How can I disable the lighttpd daemon on startup in Ubuntu

I'm setting up lighty according to this guide, and I don't really have an use for the lighttpd daemon that was installed (this is the one that resides in /etc/init.d/lighttpd). I don't want a webserver running all the time, except when I'm working.…
Alain Jacomet Forte
  • 4,575
  • 6
  • 29
  • 41
16
votes
2 answers

FastCGI, Lighttpd, and Flask

I'm setting up a simple web server on my Raspberry Pi and I can't seem to set up lighttpd, fastcgi, and flask correctly. By now, I've gone through a few iterations of /etc/lighttpd/lighttpd.conf, the most recent one being fastcgi.server = ("/test"…
user1610406
  • 722
  • 1
  • 13
  • 24
14
votes
4 answers

serving static files on Django production tutorial

Does anyone have a simple step-by-step tutorial about serving static files on a Django production app? I read the Django docs and it sounds really complicated... I'm trying to go the route of serving static files using a different server like…
rabbid
  • 5,465
  • 7
  • 26
  • 37
13
votes
2 answers

ASP.NET / Web.config: customErrors redirect only on a 404

I have this scenario: A user comes to my site and follows a link, which doesn't exists anymore, he should be redirected to a custom errorpage. (that works) If a user does something, that throws an error, he should see the Stacktrace and the real…
Lyra
  • 465
  • 1
  • 4
  • 13
12
votes
1 answer

How to deploy nodejs app on php/apache server?

I have a dedicated server on which I am currently running 4 PHP websites. The server is configured with apache+nginx. Whenever I host php websites I put files on public_html folder and thats it, it starts running. But now I want to install nodejs…
John
  • 478
  • 4
  • 12
  • 25
12
votes
4 answers

Server-side auto-minify?

Is there any way to automatically minify static content and then serve it from a cache automatically? Similar to have mod_compress/mod_deflate work? Preferably something I could use in combination with compression (since compression has a more…
Brendan Long
  • 53,280
  • 21
  • 146
  • 188
12
votes
3 answers

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…
codysoyland
  • 633
  • 1
  • 5
  • 7
12
votes
5 answers

Apache or lighttpd

For development, I use a local LAMP stack, for production I'm using MediaTemple's Django Container (which I'm loving BTW). MT's container uses lighthttpd. Honestly I've never had any other experience with it. I've always used Apache. I've been…
imjoevasquez
  • 14,021
  • 6
  • 31
  • 22
1
2 3
74 75