LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2005, 11:37 AM   #1
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Rep: Reputation: 30
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?
 
Old 08-08-2005, 11:54 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
So, this documentation didn't help?
 
Old 08-09-2005, 03:35 AM   #3
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Original Poster
Rep: Reputation: 30


Well, it was monday...
 
Old 08-09-2005, 12:09 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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?
 
Old 08-09-2005, 12:52 PM   #5
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Original Poster
Rep: Reputation: 30
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...

 
Old 08-09-2005, 05:41 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Look and see if it has keepalive options somewhere.
 
Old 08-10-2005, 06:08 AM   #7
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Original Poster
Rep: Reputation: 30
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.
 
Old 08-10-2005, 07:54 AM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem. Glad you got it working.
 
Old 03-27-2006, 10:37 PM   #9
Elnsoxo
LQ Newbie
 
Registered: Dec 2004
Location: Central Texas
Distribution: Gentoo/Slackware
Posts: 14

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Apache 2 & Multiple Virtual Hosts hegele Linux - Networking 4 02-21-2004 06:41 PM
Having Problems With Apache 2 And Multiple Virtual Hosts hegele Linux - Software 0 02-18-2004 04:02 PM
multiple virtual hosts iquadri1 Linux - Networking 1 09-25-2001 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration