Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jan 30, 2006 1:17 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
Arantor wrote:
Just wondered if anyone had tried lighttpd with virtual hosts and url-rewriting?
*snip*
It seems that lighttpd might work better for what I want than Apache might, but I'm not yet sure.

Has anyone here tried this?


I've been running lighttpd for a few months now, using URL Rewriting to get decent URLs from Gallery. I'm doing vhosting via the HOST variable. For example:

Code:
$HTTP["host"] == "www.moregruel.net" {
        server.document-root = "/var/www/wordpress"
        alias.url = ("/gallery/" => "/usr/share/gallery/", "/gallery" => "/usr/share/gallery", "/albums" => "/var/www/albums")

        url.rewrite = (
        "^/gallery/([^\.\?/]+)/([0-9]+)$" =>
                "/gallery/view_photo.php?set_albumName=$1&index=$2",
        "^/gallery/([^\.\?/]+)/([A-Za-z_0-9\-]+)$" =>
                "/gallery/view_photo.php?set_albumName=$1&id=$2",

*and so on*


So rewriting is not per-directory via .htaccess, but since you pattern match, you can make it per-directory. It's considerably faster overall than apache 1 on my machine, mostly due to lower memory use. Whether this would meet your needs is up to you.

Steve

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group