Questions tagged [lighttpd]

Lighttpd ("lighty") is a fast open source web server, optimised for speed critical environments

Lighttpd (pronounced "lighty") is an open source web server optimised for speed critical environments, which is standards compliant. It attempts to be lower memory footprint, and more CPU efficient than other web servers, and is often simpler to configure. Initially it was targetted at static content, but now it is widely used for both static content and hosting CGI, PHP, Ruby, Python etc code.

More information is available on Wikipedia

596 questions
2
votes
2 answers

Sticky sessions in Lighttpd

I've read in http://redmine.lighttpd.net/projects/1/wiki/Docs:ModProxyCore that sticky sessions are not currently implemented in lighttpd. I'd like to know if it is possible to have sticky sessions using lighttpd as a loadbalancer. Perhaps…
Matias
  • 79
  • 7
2
votes
2 answers

DNS failure solved by reboot of lighttpd?

I have a run a fairly busy site for 2 years with this setup for the web server: ec2/Amazon Linux AMI 2014.03.2 on a micro instance lighttpd (latest) godaddy dns This morning, the site was down - DNS failure. I was able to access the site via the…
2
votes
1 answer

Configure sub-domains at different ports with lighttpd

I've one domain example.com and two sub domains of it docs.example.com & bugs.example.com. And I've two applications running at ports 8080 & 8090. How to configure Lighttpd so that, it can forward all the requests at docs.example.com to 8090 and…
Arnab Das
  • 133
  • 1
  • 5
2
votes
1 answer

Rewrite Location response header in lighttpd

I have an instance of lighttpd 1.4.35 listening for https traffic and reverse-proxying it to a back-end server. I.e., .----------. .----------. client ---https--> | lighttpd | ---http--> | back-end | <--https---…
indiv
  • 265
  • 2
  • 10
2
votes
2 answers

Lighttpd rewrite subdomains to subfolders

I have a server (itself on a subdomain) with wildcard DNS pointing to it. The server is running Lighttpd and PHP. I need requests to http://any-subdomain.server.example.com to rewrite to http://server.example.com/site/any-subdomain and be served…
2
votes
2 answers

lighttpd server not serving images, js or css files

I am given a try to lighttpd. I configured a server with the instructions I found here. Below my configuration file: server.document-root = "" server.port = 4000 server.username = "www" server.groupname =…
Sergio
  • 171
  • 1
  • 8
2
votes
1 answer

After Enabling User Directories On Lighttpd I Got Failed After Restart Lighttpd Server

I am using Debian 7 64 as host, And i installed Lighttpd and PHP-FPM with mysql support, After fresh installation of lighttpd and PHP-FPM, I tried to enable user directories and i run following command: root@x.x.x.x# lighty-enable-mod userdir I got…
Pradeep Gupta
  • 387
  • 2
  • 5
  • 18
2
votes
4 answers

Apache / Lighttpd for load Balancing

What do you think about lighttpd for AJP load Balancing? I use Apache and mod_jk for this, it works fine. What would be the benefit of switching apache to lighttpd? What software use to load balance J2EE applications? Hardware load balancer? Thank…
Matthieu
  • 443
  • 4
  • 12
2
votes
1 answer

How to forbid HTTP TRACE in lighttpd

In a recent PCIDSS scan at a client of mine, I got aware of Web Server HTTP Trace/Track Method Support Cross-Site Tracing Vulnerability (CVE-2004-2320, CVE-2007-3008). The proposed mitigation for Apache is this:
andreas-h
  • 1,114
  • 1
  • 17
  • 28
2
votes
1 answer

Identifying performance bottleneck on a high-end VPS (Apache 2.4 event_mpm/lighttpd/nginx)

I have quite a high-end VPS from vpsblast (their SSD13) - 4 cores, 16gb RAM, 320gb of SSD hard drive space on a 1GigE Internet backbone (virtually uncontested). As near as I can tell it is running OpenVZ (simfs is used, user_beancounters exists).…
fluffyponyza
  • 123
  • 4
2
votes
1 answer

lighttpd redirect/ rewrite

I am trying to setup a redirect/rewrite so that the urls end with / (trailing slash) (for making seo friendly). However there are other internal rewrites, which are not shown in the browser address bar. I want to be able to redirect first with…
tike
  • 643
  • 1
  • 5
  • 18
2
votes
1 answer

Lighttpd / PHP-CGI will crash without warning

I'm using Lighttpd / PHP-CGI on a Windows XP machine. I was using the normal CGI interface which is very stable, but I tried FastCGI and I love the speed boost. However, even under light load, the PHP-CGI daemon will just crash after an hour or…
Kaslai
  • 121
  • 3
2
votes
3 answers

How to diagnose erratic disk behavior?

I have a web site with users lighttpd and CGI scripts. After upgrading to Fedora 11 (ext4) the disc access became erratic. The timing of python -c 'import cgi' varies between 0.1 to almost 10 seconds: How can I diagnose the problem? (Tools,…
Miki Tebeka
  • 158
  • 5
2
votes
1 answer

Lighttpd QUERY_STRING escape properly

Problem is to escape query string in Lighttpd: This is url: domain/publisher/adframe-34.html?tag=xzzx&gg=yy&uu=121 and this is lighty rule: adframe-([1-9][0-9]*)\.html\?(.*)" => "ad/frame.php?ad_unit_id=$1&addl=$2 What I am expecting is that addl…
2
votes
2 answers

How to optimize Lighttpd to host really small, static image files that do not change over time?

This Lighttpd server will need to very quickly serve different image files (say about 500 requests per second). Each image file is about 50-70kb and there's only going to be about 1000 or so of them. What would be the best way to setup an efficient…
Henrique
  • 153
  • 1
  • 5