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

Can not restart lighttpd? Receiving strange errors with regards to fcgi?

I received the following error when I tried to restart lighttpd. I'm running a rails application, and when I deploy a new version of the site I usually do /etc/init.d/lighttpd restart This used to always work, until today when I got the following…
Janak
  • 264
  • 3
  • 8
1
vote
2 answers

Lighttpd 403 forbidden errors

I'm in the process of replacing Apache with Lighty and I'm having some trouble. The index of the page loads fine, but whenever I try to go into a subdirectory I will get a 403 forbidden error. It does not matter which directory. I have tried…
Richard
1
vote
1 answer

Lighttpd redirect from www.domain.com to domain.com

I need to permanently redirect all www.domain.com to domain.com in Lighttpd. Here's relevant part of my lighttpd.conf: $HTTP["host"] =~ "^www\.domain\.com$" { url.redirect = ( "^/(.*)" => "http://domain.com/$1" ) } $HTTP["host"] =~…
Art
  • 297
  • 4
  • 12
1
vote
1 answer

How can I proxy couchDB as a sub-diectory with lighttpd?

I have a sub-directory on my web server (lighttpd) that I want to point at a CouchDB instance running on the same machine. I tried using mod_proxy but it sends along the whole request, like a proxy should, I know! So: // What happens: Lighttpd: …
xj9
  • 155
  • 5
1
vote
1 answer

Make PHP FastCGI process write to a specific error log?

I have a server running Lighttpd with three user's serving domains from it. Each user gets their own PHP FastCGI process for serving PHP content across all of their domains. Lighttpd allows me to write the access log files for each domain to unique…
James Sumners
  • 513
  • 3
  • 7
  • 17
1
vote
1 answer

Lighttpd vhost config

I am running lighttpd on Debian. Is there a way I can place my virtual host designations outside of the /etc/lighttpd/lighttpd.conf file? I want to try for a cleaner approach, as my file is getting a bit long.
muncherelli
  • 759
  • 1
  • 4
  • 22
1
vote
2 answers

Ubuntu vs Debian for lighttpd and mysql servers

I am totally used to running a Debian system for my lighttpd server and MySQL. Would there be any benefits to running an Ubuntu 10.04 web and mysql server vs my Debian 5 web server any mysql servers? (I have two servers, one running http and the…
muncherelli
  • 759
  • 1
  • 4
  • 22
1
vote
1 answer

CentOS 5.4 - Lighttpd wrong port forwarding?

I've a VPS and although I am not a systems analyst by profession, I'm pretty used to configuring remote vps/dedicated boxes. Configuration: CentOS 5.4, lighttpd 1.4.22, mysql. There are 7 domains configured with simple_vhost module. All of them…
LEv
1
vote
1 answer

IP-Based Virtual Hosts Lighttpd

I have multiple IP's and I would like to route each one to its own directory. This is what I have so far.. $SERVER["socket"] == "XXX.XXX.XXX.XXX:81" { server.document-root = "/var/www/XXX.XXX.XXX.XXX " } While this works, It only works on port 81…
SyntaxMan
1
vote
2 answers

Allowing multiple IP ranges access to a virtual host in lighttpd with remoteip

Say I'd like to restrict access to a virtual host to multiple IP ranges. How to do that? The Perl regex syntax style doesn't work, and i don't want loose restrictions like *10.** The code below works for a single range: $HTTP["host"] ==…
weeheavy
  • 4,089
  • 1
  • 28
  • 41
1
vote
2 answers

Setting module path in lighttpd config file?

What is the option in lighttpd.conf to set the default path for lighttpd to look for modules? My lighttpd would not start because it keeps looking for critical modules at the default path, and I had the server installed at another location. Thanks!
futureelite7
  • 207
  • 1
  • 4
  • 8
1
vote
0 answers

Lighttpd Prepending Strings to Certain Files

I have a Mint install (Fantastic stats, if you were wondering) and I would like to move over to Lighttpd for my server needs. Unfortunatly, this means that php_auto_prepend is no longer easily available. I understand that PHP can do this in the…
Kyle
  • 562
  • 2
  • 5
  • 16
1
vote
1 answer

lighttpd start/stop/restart script doesn't work

I want to restart lighttpd using */lighttpd restart command, but nothing happens, no message, error, just a new cli line waiting for command. I've examined lighttpd file and lighttpd.conf and they seem to be ok.. What should I do more ?
Claudiu
  • 85
  • 1
  • 11
1
vote
1 answer

lighttpd, ngingx, fastcgi, static content, What are they, and when do you need them

i am working on an web application that requires the page to be updated every second. You can think of a websites with stocks where the data has to be updated real time. Background For this real time update i use Ajax, the jquery plugin. My database…
Saif Bechan
  • 10,960
  • 10
  • 42
  • 63
1
vote
2 answers

How to configure fastcgi to work with ligttpd in ubuntu

I am able to run lighttpd on ubuntu 9.10. But when i tried to setup fastcgi with lighttpd by putting this in the ligttpd.conf file: #### fastcgi module fastcgi.server = ( "/fastcgi_scripts/" => (( "host" => "127.0.0.1", "port" =>…
michael
  • 23
  • 1
  • 2
  • 5