# One Lighttpd or many?

**URL:** <https://www.ruby-forum.com/t/one-lighttpd-or-many/62348>\
**Category:** Rails\
**Created:** [June 2, 2006, 10:51pm UTC](https://www.ruby-forum.com/t/one-lighttpd-or-many/62348 "2006-06-02T22:51:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [June 2, 2006, 10:51pm UTC](https://www.ruby-forum.com/t/one-lighttpd-or-many/62348/1 "2006-06-02T22:51:50Z")

</div>

I’m trying to get Lighttpd started, and understand how it works (not  
quite there yet with Ror). Some questions:

1. Can I run Lighttpd as a main server instead of Apache2?

2. When hosting different RoR projetcs, will there be one server for  
each? Or is it one server running all?

3. Can it do everything Apache can? Like PHP, webdav, etc?

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [June 3, 2006, 12:43am UTC](https://www.ruby-forum.com/t/one-lighttpd-or-many/62348/2 "2006-06-03T00:43:02Z")

</div>

PÃ¥l BergstrÃ¶m wrote:

> I’m trying to get Lighttpd started, and understand how it works (not  
> quite there yet with Ror). Some questions:
> 
> 1. Can I run Lighttpd as a main server instead of Apache2?

yep

> 1. When hosting different RoR projetcs, will there be one server for  
> each? Or is it one server running all?

there will be one fcgi or mongrel for each. and only one lighttpd.

> 1. Can it do everything Apache can? Like PHP, webdav, etc?

sure. my lighttpd serves static files, websvn, phpmyadmin…

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [June 3, 2006, 11:03am UTC](https://www.ruby-forum.com/t/one-lighttpd-or-many/62348/3 "2006-06-03T11:03:17Z")

</div>

carmen wrote:

> PÃ¥l BergstrÃ¶m wrote:
> 
> > I’m trying to get Lighttpd started, and understand how it works (not  
> > quite there yet with Ror). Some questions:
> > 
> > 1. Can I run Lighttpd as a main server instead of Apache2?
> 
> yep
> 
> > 1. When hosting different RoR projetcs, will there be one server for  
> > each? Or is it one server running all?
> 
> there will be one fcgi or mongrel for each. and only one lighttpd.
> 
> > 1. Can it do everything Apache can? Like PHP, webdav, etc?
> 
> sure. my lighttpd serves static files, websvn, phpmyadmin…

Looks like Lighttpd is slimmer but equally powerful as Apache, right?  
I’ve installed it, on Mac OS, but not sure where it’s located in the  
system. I found the lighttpd.conf file, but inside the ruby folder. Is  
that right? Is it like Apache that’s installed in one main folder?

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [June 4, 2006, 4:14am UTC](https://www.ruby-forum.com/t/one-lighttpd-or-many/62348/4 "2006-06-04T04:14:30Z")

</div>

> Looks like Lighttpd is slimmer but equally powerful as Apache, right?

mostly. ive found certain modules are closely tied to apache (like ive  
got some sites written in mod\_python’s PSP whose parser is a C apache  
module and so the apps are ‘trapped’ in apache). im guessing theres  
similar cases for mod\_perl, etc…

> I’ve installed it, on Mac OS, but not sure where it’s located in the  
> system. I found the lighttpd.conf file, but inside the ruby folder. Is  
> that right? Is it like Apache that’s installed in one main folder?

you might want to ps aux | grep lighttpd. to investigate if its already  
being launched on your system (i made a symlink from  
/etc/lighttpd/lighttpd.conf to the one in the rails dir initially). if  
you have lighttpd in your PATH, running ./script/server will  
automagically launch it instead of webrick.

mongrel is quite useful on its own, but i havent investigated if it can  
run multiple rails sites per instance yet…
