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

587 questions
0
votes
1 answer

Lighttpd mod_rewrite to Apache mod_rewrite

I want to turn this Lighttpd mod_rewrite to apache rewrite code. $HTTP["host"] =~ "^(i\.ylar\.se|puush\.me)$" { server.document-root = "/var/www/servers/i.ylar.se/" url.rewrite-once = ( "^/api/up" => "/upload.php", …
Ylar
  • 3
  • 2
0
votes
1 answer

lighttpd server-status blank host and uri

Looking at the server-status on lighttpd, running behind a AWS load balancer, I'm seeing some long-lived (up to around 60 seconds) requests, in a "read" state with a blank host and blank URI. What does this mean, and is this anything to be concerned…
0
votes
1 answer

Lighttpd fails with 403 - Forbidden with SELinux enabled

I've setup a CentOS 6.3 box with lighttpd, php-fpm and I can server both static files and PHP files with SELinux enabled if I leave the lighttpd home directory set to the default (/var/www/lighttpd). However if I change the home directory to…
Brad
  • 589
  • 1
  • 9
  • 26
0
votes
0 answers

LightHTTPD - Software caused connection abort

I have a local LightTPD server running on my windows 7 computer. I have SSL set up and it works - but every time I request a document from the SSL part of the server I get the following on the logging window: 2013-03-17 19:11:05:…
starbeamrainbowlabs
  • 323
  • 1
  • 6
  • 16
0
votes
2 answers

Lighttpd vhost regex

I'm having a problem with my vhosts using regex. When I use the following code, I get a 404 not found: $HTTP["host"] =~ "(^|\.)example\.com$" { ... } However, when I explicitly set it to the following, I can get to my site: $HTTP["host"] ==…
Mike
  • 141
  • 3
0
votes
1 answer

lighthttpd proxy rules to allow for snap-shot testing and amazon monitoring

I use this rule for my proxy: $HTTP["host"] =~ ".*" { proxy.balance = "round-robin" proxy.server = ( "/" => ( ( "host" => "127.0.0.1", "port" => 9000 ) ) ) } Because I'm allowing any host to go to my proxy, I have the flexibility to…
jcalfee314
  • 259
  • 1
  • 5
  • 14
0
votes
2 answers

lighttpd: backend is overloaded

I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: (mod_fastcgi.c.2900) backend is overloaded; we'll disable it for 2 seconds and send the request to another backend instead: reconnects: 0 load:…
Aaron A
  • 229
  • 2
  • 13
0
votes
2 answers

Multiple SSL based IPs on lighttpd

I have lighttpd as web server and on it I have installed IP-based SSL certificates. I want to have a way to have multiple SSL certificates on each new IP that the server may get. For example, at the moment I have https://127.0.0.1 and it works, but…
Alin Andrei
  • 127
  • 9
0
votes
2 answers

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: server.modules = ( "mod_simple_vhost", …
0
votes
1 answer

lighttpd: weird behavior on multiple rewrite rule matches

I have a 20-rewrite.conf for my php application looking like this: $HTTP["host"] =~ "www.mydomain.com" { url.rewrite-once += ( "^/(img|css)/.*" => "$0", ".*" => "/my_app.php" ) } I want to be able to put the webserver in…
netmikey
  • 233
  • 1
  • 2
  • 7
0
votes
1 answer

mod_access for lighttpd causes a 403 error for all POST requests

I have found on my debian server that running the lighttpd module mod_access is causing the server to response with a 403 to all POST requests. It's very odd as I have two servers, one is running as I'd expect and the other keeps returning these…
0
votes
1 answer

Apache2 .htaccess rewrite rule to Lighttpd

could you help me to convert this rewrite rule from apache2 to lighttpd RewriteEngine on RewriteBase / RewriteCond %{HTTP_REFERER} !^http://my-site\.net/ [NC] RewriteCond %{HTTP_REFERER} !^http://www\.my-site\.net/ [NC] RewriteCond %{HTTP_REFERER}…
Chris
  • 113
  • 1
  • 5
0
votes
1 answer

Lighttpd referer issue

I have a problem to block files from accessing from different domains as my one. I have added to my lighty config in the "virual host" following: $HTTP["referer"] !~ "^($|http://www\.my-site\.net)" { url.access-deny = ( "" ) } but anyway the…
Chris
  • 113
  • 1
  • 5
0
votes
2 answers

Debain server "HTOP": shows several PHP-CGI instances

I'm new to Debian servers, (Linux VPS in general) and have a question about /usr/bin-php-cgi showing up several times as "tasks" when I run the HTOP "app." I couldn't find any information online about why there are several php-cgi tasks running.…
Patrick Nommensen
0
votes
1 answer

How to log slow HTTP responses

How does one log slow HTTP responses? I'm using Lighttpd, but could switch to another webserver if necessary. Apache can log response times, but not conditionally, it seems. http://httpd.apache.org/docs/2.4/mod/mod_log_config.html Apache Bench and…
XTF
  • 165
  • 1
  • 8