Lighttpd

Welcome

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

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"] =~ "(.*).example.com$" {

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

Multisite on Drupal 7

Hi,

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:
http://benclark.com/archive/201006/how-to-run-multisite-drupal-on-lighttpd

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?

Thanks!

3 comments

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?

3 comments
karthick62's picture

Need lightttpd clean urls

Hi,

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

1./document-root/site
2./document-root/site/subsite1
3./document-root/site/subsite2
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

4./document-root/site/subsite3/subsite3.1

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.

12 comments · Read more

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: http://groups.drupal.org/node/22787 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")

Login or register to post comments · Read more
solide-echt's picture

Issue with multi-site & macports on Snow Leopard

Hi,

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

Login or register to post comments · Read more
Garrett Albright's picture

Heads up with Drupal 7 tests

A heads-up to my fellow developers. I ran into this problem on Lighty, but it probably is going to occur on all non-Apache server daemons, so I'm cross-posting this to the Nginx and IIS groups too.

4 comments · Read more
funkyhat's picture

multi site with lighttpd

I wasn't happy with the vhost modules in lighttpd, I host a few drupal sites on a multisite setup, as well as a few non-drupal sites, so a single way of defining vhosts was a bit too restrictive. I came up with a script which is loaded by include_script, based on this howto. I'm using the mod_magnet script from here.

8 comments · Read more · 1 attachment
mikeytown2's picture

Lighttpd & Boost: Report that new rules work with boost now!

Support for html, xml, json, js, css; no gzip ATM.

Testing would be appreciated
http://drupal.org/node/150909#comment-2314310

Tips/code on how to add in support for .gz files would be very helpful!

6 comments

Excluding static directories in Drupal's root

Hi,

I'm trying to exclude a static directory in Drupal's root (called /docs) from being caught by Drupal. Currently I'm just getting a "page not found" error since there's no "/docs" page (error page).

Drupal is embedded into Lighty through "mod magnet" (magnet.attract-physical-path-to = ( "/etc/lighttpd/drupal.lua" ). Where is this to be configured, if it is possible at all with Drupal running on Lighttpd (Solution for Apache/mod_rewrite)?

3 comments · Read more
Syndicate content