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
1
vote
1 answer

What is lighttpd's version of "mod_substitute"?

Recently I read that Apache 2.2 has a new mod to patch outputs on the fly. mod_substitute provides a mechanism to perform both regular expression and fixed string substitutions on response bodies. The feature is useful when I setup…
Dennis C
  • 180
  • 1
  • 1
  • 5
1
vote
5 answers

HTTP request pause for one minute

I have this website which works very smoothly but occasionally when I click a link it pause for around one minute before I get the page, and when I open the same page in a new window, it open smoothly without any delay. Any ideas on what could cause…
user15910
1
vote
2 answers

Rewriting a download URL, but "save -as" dialog shows original URL

I have the following mod_rewrite directive in my lighttpd config file: url.rewrite-once = ( "foo.*$" => "static/foo.pdf", ) I'd like to hand out URLs like this: http:///foo/r=ca2b912 (or similar), such that I can track the origin of the…
Sebastian
  • 189
  • 6
1
vote
1 answer

Using an EV SSL certificate for your site with non-EV SSL content

If I purchase an EV SSL certificate for a site that is using static content from a non-EV SSL site does that effect the EV SSL certificate presentation on the main www site? For example: www.example.com (uses an EV SSL…
Hibbie
  • 21
  • 2
1
vote
1 answer

lighttpd configuration for running django and legacy website together

I'm planning to migrate an old website to django. Initially, I want to use django for the urls www.mydomain.com/news, and continue to use the old static website for everything else. I have little experience of lighttpd, which my django host uses,…
Alasdair
  • 113
  • 5
1
vote
5 answers

Retrieve external IP in PHP behind Haproxy

I am using Haproxy to enable running a websocket server and Lighttpd web server on the same machine. I want to retrieve the machines external IP address from the web application running on the Lighttpd server. Without haproxy this works: PHP
1
vote
0 answers

Lighttpd fastcgi remote instance operation

This article suggests that it is relatively easy to scale an application by getting lighttpd to spawn php-fastcgi instances on multiple machines. What I do not understand is this - how does a PHP script spawned on another machine get access to…
DroidOS
  • 173
  • 7
1
vote
1 answer

SELinux policy issue

As qemu & KVM are working fine with SELinux out of the box I'd like to enable SELinux to improve guest isolation on my CentOS 6 server. The problem is that I'm using a 3rd parity virtualization managment software that requires SELinux to be…
justlovingIT
  • 475
  • 3
  • 11
1
vote
1 answer

lighttpd behind pound gets "connection timed out" error when using browser other than Chrome

Please help me diagnose a problem. I had a working website (WordPress) for the last 6 months working just fine. No updates or new installations have been made in the server. Today users complain that the website hangs. I usually use Chrome and when…
supercoco
  • 141
  • 5
1
vote
1 answer

Rewrite rules for Anchor CMS on Lighttpd

I installed Anchor CMS on my server running Lighttpd, and I am trying to setup pretty url's. I have anchor installed in a sub-directory "/blog". The htaccess file that works with anchor cms in apache is: RewriteEngine…
meskarune
  • 131
  • 5
1
vote
1 answer

How do I configure lighttpd to serve static documents and proxy requests to a cluster of Rails app servers?

I'm trying to configure lighttpd so that it serves static documents of my Ruby on Rails app, and also routes requests to my Ruby on Rails app servers. This is the configuration I have so far: $HTTP["host"] =~ "(^|www\.)brlafreniere.com$" { …
1
vote
0 answers

How to convert RewriteCond rules so they work in Lighttpd?

How can I convert this Apache rewrite rules so they work on Lighttpd? This is in fact a .htaccess file, and I need to put those in a lighttpd.conf file. Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
1
vote
1 answer

How to redirect URLs without break a FastCGI app?

(I consider this question a duplicate of Lighttpd redirect from www.domain.com to domain.com, but that one didn't get enough attention and it's too old). I'm trying to deploy an app over lighttpd+FastCGI and encrypt all the traffic. It works well if…
Tae
  • 113
  • 7
1
vote
3 answers

Remove trailing slash Lighttpd url

A weird request, but I really need this answered. Can you guys help me using re-write rules to remove the trailing slash from urls in Lighttpd.conf? EG: **A** www.example.com/page/ **B** www.example.com/page I want url A to be forced into the…
James
  • 171
  • 1
  • 3
  • 15
1
vote
2 answers

What is lighttpd's version of mod_ruby?

I'm trying to find a mod_ruby for lighttpd, not apache2. Does anyone have any ideas?
chutsu
  • 165
  • 4