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

file_get_contents url wrappers work on cli but not cgi

I have a big problem. I have just upgraded to a new dedicated server running Plesk 10, and Ubuntu 11.04 and my scripts can't run file_get_contents or curl to external urls in cgi mode. allow_url_fopen is set to On in the correct php.ini file but…
Liam Bailey
  • 183
  • 8
2
votes
1 answer

lighttpd on Fedora permission issues

I'm trying to get started with lighttpd on Fedora 16 to run a RESTful api for development. Right now even with the most basic sample config file I'm getting 404 pages when I know the pages I'm pointing at exist. From reading other questions I'm…
2
votes
1 answer

lighttpd adding vhost error

I'm trying to have multiple domains. Followed the instructions from web and added the lines in lighttpd.conf file: $HTTP["host"] =~ “(^|.)example.com$” { server.document-root = “/var/www/example.com″ } but when I restart the server I get the…
cikatomo
  • 149
  • 4
2
votes
2 answers

How to effectively have less php-cgi processes running?

My server is a Linode 512, and on it I run a Wordpress MU with 3 websites (they don't get a lot of visitors) and a couple of NodeJS apps. I need to switch to Lighttpd because Apache 2 was using about 59% of the server's RAM, and now I have the…
2
votes
1 answer

Multiple authentication backends in lighttpd

I have some users in a LDAP directory and I'd like to have another user in a plain or htpasswd file that can login although the connection with the LDAP server is not available. Is it possible to have multiple authentication backends for the same…
Jaime Soriano
  • 308
  • 3
  • 15
2
votes
2 answers

In an Apache + lighttpd setup, who should be the proxy?

In a setup where you use Apache for PHP / Python scripts and lighttpd for static files, but only one listens on the outside IP address and acts as a proxy to the other listening on the loopback interface, which should be which, why, and does it…
Hanno Fietz
  • 1,022
  • 2
  • 13
  • 24
2
votes
3 answers

SELinux causes "Permission denied" when starting lighttpd+fastcgi via upstart

I'm have trouble launching a lighttpd fastcgi python app via upstart. I can launch the app successfully using sudo lighttpd -D -f /path/to/lighttpd.conf and via su -c "lighttpd -f /path/to/lighttpd.conf. In upstart, I'm using the following…
bfallik-bamboom
  • 227
  • 4
  • 7
2
votes
1 answer

Lighttpd: Redirect specific location and sub-locations from HTTP to HTTPS (without using domain name)

I would like to redirect a specific section of a website from HTTP:// to HTTPS:// using Lighttpd. I've been looking at this Lighttpd wiki entry, but the examples don't work the way I want. I have two requirements: No specific domain should be…
johndir
  • 305
  • 1
  • 5
  • 9
2
votes
1 answer

Lighttpd redirect to tomcat app

I've just set up a lighttpd server which I want to use to serve multiple applications on different domains. I've managed to make traffic to a specific domain to be redirected to an application running on another port like this: $HTTP["host"]…
lassejl
  • 121
  • 3
2
votes
2 answers

Issue redirecting uri to remove "http://" in path under lighttpd

So I'm trying to do this redirect under lighttpd, but for whatever reason I just can't get it to work. I've tried looking a debug logs and all. Say I have entered http://mydomain.com/http://test.com I would like lighttpd to redirect it to…
Samuel Parkinson
  • 202
  • 3
  • 10
2
votes
3 answers

How to get rid of TCP or lighttpd 4KB buffering on CGI output?

I have a stock lighttpd install on a Amazon Linux AMI running on EC2. The only config changes I did is to enable CGI support. Then there is a custom CGI tool (written in C) put in /cgi-bin/ that is called from the outside world and outputs gzip'ed…
Pol
  • 123
  • 3
2
votes
1 answer

lighttpd and mod_proxy with PHP

I am trying to create a rather complex setup using a combination of lighttpd, some custom Ruby proxies, rails/ramaze (running on Thin), and PHP. Currently it is setup like this: A browser issues the request which hits the lighttpd frontend.…
Gary13579
2
votes
2 answers

Apache only for certain things, rest lighttpd

right now the script I'm running isn't fully functional with lighttpd, and some processes still need to be run by apache. therfore, i was wondering if anyone could tell me how to use apache to handle cgi-bin requests on port 81 or 8080 and lighttpd…
Belgin Fish
  • 919
  • 5
  • 17
  • 31
2
votes
1 answer

Webserver vhost configuration in database?

I know it's possible with lighttpd, but is there a way to achieve the same thing with Apache or better yet, nginx?
Matty
  • 209
  • 2
  • 6
2
votes
4 answers

Rewrite rules for Drupal Boost with Lighttpd

I have been given the super task of preparing a web site to get hammered.... Or site is drupal based, I have found what could be my answer in the form of Boost. But I can't for the life of me find any information on the Lighttpd rewrite rules to…
bsdjunkie
  • 121
  • 5