LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lighttpd: multiple virtual hosts? (https://www.linuxquestions.org/questions/linux-software-2/lighttpd-multiple-virtual-hosts-351198/)

neocookie 08-08-2005 11:37 AM

lighttpd: multiple virtual hosts?
 
Hi all

I'm trying to set up multiple virtual hosts in lighttpd, though I can't seem to find any documentation on setup.

Can anyone give me a hand?

Matir 08-08-2005 11:54 AM

So, this documentation didn't help?

neocookie 08-09-2005 03:35 AM

:scratch: :eek: :rolleyes:

Well, it was monday...

Matir 08-09-2005 12:09 PM

LOL. I'm sorry if my response seemed sarcastic (as it might in hindsight). As I've never used lighttpd, I wasn't sure if there was something I was missing. Did you get it working, now that it's Tuesday? :)

neocookie 08-09-2005 12:52 PM

Yes, though there's a strange kink i'm trying to iron out.

The server seems to be keeping the connection open, even though all the content's been passed. This only happens with requests to the php5-fcgi running on there.

I know understand why some developers go bald before they hit 30...

:scratch:

Matir 08-09-2005 05:41 PM

Look and see if it has keepalive options somewhere.

neocookie 08-10-2005 06:08 AM

Right on the money. The defaults are quite big:
Code:

server.max-keep-alive-requests = 128
server.max-keep-alive-idle = 30
server.max-read-idle = 60
server.max-write-idle = 360

They recommend the following settings:
Code:

server.max-keep-alive-requests = 4
server.max-keep-alive-idle = 4

Works great for me!

Thanks for your help.

Matir 08-10-2005 07:54 AM

No problem. Glad you got it working. :)

Elnsoxo 03-27-2006 10:37 PM

Not to bring up an old thread, but I'm having the same problem...

For example, let's say all of my servers follow the scheme /var/www/servers/(subdomain).(server).(tld)/pages

With mod_evhost:
Code:

# define a pattern for the host url finding
# %% => % sign
# %0 => domain name + tld
# %1 => tld
# %2 => domain name without tld
# %3 => subdomain 1 name
# %4 => subdomain 2 name
#
evhost.path-pattern = "/var/www/servers/%3.%2.%1/pages/"

I cannot at all get this to work.

example.org falls back to default host /var/www/pages, which is a good thing
www.example.org goes to /var/www/servers/www.example.org/pages/, which is a good thing
test.example.org brings up a server not found error. Yes, I did create /var/www/servers/test.example.com/pages/ and have placed an index.html in there.


All times are GMT -5. The time now is 12:53 PM.