Are you a Lighty fan in an Apache world? It turns out the Lighttpd web server is a great platform for running Drupal too. This group is for discussion of using Drupal in conjunction with Lighty and vice versa.

Must Reads

antoniocuga's picture

Help with the files directory

Hi folks. I trying to configure the files directory in my Debian Server, but the images styles doesn't generate. Anyone know about this? there is a specific permission for this directory?

I hope anyone can help me.


chaskype's picture

I need clean urls in D7 with lighttpd 1.4


I have a server Debian 6, PHP 5.4 and need deploy Drupal 7 but I can not set clean urls, the documentation I found on the internet is very old. and my question is if any of you have an example or documentation on what I need.

Thank you very much, sorry for my English is not good.

AstroDaz's picture

Basic rewrite issues - lighty newbie!

Hi all

I have an ASUS Transformer T700 running Android 4. I have installed an app called KSWEB which has MySql, php5 and lighttp.

I have downloaded d7 and it installs fine, and i have exported my site database from my laptop and imported to the 'droid ok.

When i go to the localhost via the pad browser, the home page is served but anything else fails with a 404 error. If i use the '?q=' in the url, then the sub page loads. I cannot get it to work with clean urls.

There is only 1 site, no virtual hosts or anything like that.

Any help in working out a rule would be great!

Read more
Garrett Albright's picture

I gave up on Lighty.

Well, after years of waiting for version 1.5 to come out, I finally decided to give up recently when upgrading between sub-point-releases of 1.4 on my VPS caused my site to go down (again) and I couldn't quickly figure out why. Yep, even though I founded the Lighty GDO group, I'm running nothing but Nginx now, both on my VPS and locally. Here's a few quick thoughts on the switching experience.

Read more
macinr's picture

Lighttpd config for multisite Drupal

Here is my lighttpd config. It supports shortened URLs for the /files & /themes.

$SERVER["socket"] == ":80" {

# drupal specific stuff

# Deny access to backup_migrate module dumps
$HTTP["url"] =~ "^(/sites/(.*)/files/backup_migrate/)" {
    url.access-deny = ("")
$HTTP["url"] =~ "/files/backup_migrate/" {
    url.access-deny = ( "" )

# drupal vhosting

$HTTP["host"] =~ "(.*)$" {

    ### default to drupal 7
    server.document-root = "/local/www/drupal-7/"
Read more
geekgirlweb's picture

Multisite on Drupal 7


I was wondering if any one could share how they've gotten D7 with clean urls and mutisite working in Lighttpd? Any success with out LUA? The most relevant documentation that I can find is here:

However it's still not working for me, I have custom .conf files for each domain, so I'm not sure if I should just edit the main domain .conf, or create separate .conf's for each multisite?


panhead490's picture

D7 Update

Looking at lighty for the first time but wanted to know if/how people are using it with D7. I have a few sites running D6 I'm not concerned about based on everything I've read -- but knowing I can use it for future sites on D7 is quite important ;)

Can anyone weigh in on this?

karthick62's picture

Need lightttpd clean urls


I have started using drupal on lighttpd for the few days.. My directory set up goes like this .

I am able to get the clean urls for the above sites using lua scripts. I have no problem on accessing the pages using both apache and lighttpd

But I got another site,like


When I click the pages on the subsite3 and subsite3.1 I am getting page not found errors when I use lighttpd. but it works fine with apache2. I need help on this.

Read more
spflanze's picture

Clean URLs On The Same LIGHTTP Server That Also Serves Static Sites

My lighttpd server is serving both a Drupal based dynamic content website and a static content website. On the dynamic website Garret Albright's LUA script at: works like a charm.

But on the static website it seems to cause Lighttpd to ignore the configuration file directive:

server.indexfiles = ("index.php", "index.html",  "index.htm", "default.htm")

Also tried:
index-file.names = ("/index.php", "/index.html", "/index.htm", "/default.htm")

Read more
solide-echt's picture

Issue with multi-site & macports on Snow Leopard


I'm having an issue that's really driving me nuts:

I'm on a Mac and moved from Leopard to Snow Leopard. I did a clean install of xcode and macports and installed all necessary ports. After some fiddling mysql (5.1.50), php (5.3.3) and lighttpd (1.4.26) are running fine. Drupal (6.17) runs fine also but I cannot get the multi-site feature to work again (it worked on Leopard). The relevant part (probably...) of the lighttpd.conf is:

Name all drupal hosts such that they have a '.dev' toplevel domain

$HTTP["host"] =~ ".dev" {
url.rewrite-final = (
# imagecache

Read more
Subscribe with RSS Syndicate content