
02-09-2005, 10:37 PM
|
|
Web Hosting Guru
|
|
Join Date: Oct 2001
Posts: 252
|
|
thttpd (web server) for VPS
I read on another forum that someone recommended the small web server thttpd. It made me think that it would be useful for people running low-end VPS accounts. Anyone using it? (or other non-Apache servers?)
"thttpd - tiny/turbo/throttling HTTP server"
http://www.acme.com/software/thttpd/
Cheers,
Carlos Camacho
------
<<Snipped>>
Last edited by anon-e-mouse; 02-09-2005 at 11:45 PM.
|

02-09-2005, 11:01 PM
|
|
Web Hosting Master
|
|
Join Date: Apr 2000
Posts: 4,912
|
|
Several of our clients are running thttpd curently on our Virtuozzo-based VPS servers without issue.
__________________
BurstNET® - an INC500™ Company - THE #1 BUDGET VPS PROVIDER IN THE INDUSTRY - Now in CA/FL/IL/TX/UK!
Dedicated | Unmetered | VPS | Co-Location | Backup | Flux-Capacitors | Resale | Affiliate | 100TB | Cloud
ONE OF THE OLDEST AND MOST POPULAR RESALE PROGRAMS - BRAND NEW PA FACILITY NOW ONLINE!!!
http://www.burst.net - http://www.burstnet.eu - sales @ burst.net - Twitter: @BurstNET - All New Website!
|

02-10-2005, 12:46 AM
|
|
Web Hosting Guru
|
|
Join Date: Oct 2001
Posts: 252
|
|
And did they (you) find that it helped reduce their load?
__________________
Carlos
|

02-10-2005, 10:04 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Jan 2002
Posts: 31
|
|
That's a very good idea! However, VPSes seem to get more loaded by anti-spam/anti-virus stuff, or untuned database servers, than Apache itself.
The most effective use of thttpd is to use it to serve all the images, while Apache deals with the dynamic content.
You should also check out Boa ( www.boa.org), which is similar to thttpd, but may have options that better suit your needs. I've used both for a busy site and I think Boa was more robust (it was a while ago, so I don't quite recall).
If you're using Apache 2 you could always try to use the threaded module instead of the pre-fork one.
Let us know how it goes.
|

02-16-2005, 08:25 PM
|
|
Web Hosting Guru
|
|
Join Date: Oct 2001
Posts: 252
|
|
Quote:
|
The most effective use of thttpd is to use it to serve all the images, while Apache deals with the dynamic content.
|
Would you happen to have any links that show/explain how to do this?
Is the Roxen open source server ( http://www.roxen.com/products/webserver/) worth checking out?
Also, although way out of my league, any comments on the Zeus server? ( http://www.zeus.co.uk/products/zws/)
Cheers,
__________________
Carlos
|

02-16-2005, 08:46 PM
|
|
Performance Specialist
|
|
Join Date: Dec 2004
Location: New York, NY
Posts: 10,341
|
|
Carlos,
From what people have been telling me Zeus is much faster than Apache and less resource intensive. I may give it a try on one of my test servers 
__________________
MediaLayer, LLC - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!
|

02-16-2005, 09:03 PM
|
|
Web Hosting Guru
|
|
Join Date: Oct 2001
Posts: 252
|
|
Yes, that is what I have read from my quick scan of it. The prices are pretty high, so it's not for hobbyist. 
__________________
Carlos
|

02-16-2005, 10:42 PM
|
|
Web Hosting Evangelist
|
|
Join Date: Dec 2002
Location: Toronto, Canada
Posts: 522
|
|
And their price chart needs a small update. Today, USD 1700 is only EUR 1300... but I've heard it's a nice server.
|

02-18-2005, 11:15 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Jan 2002
Posts: 31
|
|
Quote:
Originally posted by phvt
The most effective use of thttpd is to use it to serve all the images, while Apache deals with the dynamic content.
|
Quote:
Originally posted by Carlos
Would you happen to have any links that show/explain how to do this?
|
You have the following options:
1. Keep all Web servers on port 80 and bind Apache to specific IP addresses and thttpd (or boa) to others.
2. Run thttpd or boa on a different port. This is not really recommended, because some (or many) corporate firewalls block outgoing access to non-standard ports.
In your dynamic, Apache-driven site, you'd reference all static content (e.g. images) using the URL of this boa or thttpd server. During site development, it would be best if you place all static files into a single directory, and that becomes the DocumentRoot of your boa or thttpd server.
|

02-19-2005, 12:19 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Mar 2004
Posts: 522
|
|
I have used thttpd before. It's not as powerful as apache, but it does its job if you don't have any complicated scripts.
|

02-19-2005, 12:46 AM
|
|
Web Hosting Guru
|
|
Join Date: Oct 2001
Posts: 252
|
|
phvt, thanks for the info. I "almost" get what you are saying. I suppose I'll just need to sit down and try it.
I run Mambo, a content management system, so I am wondering if using Apache for the dynamic stuff and thttpd for the images would work in such a case.
Cheers
__________________
Carlos
|

02-19-2005, 01:01 PM
|
|
Junior Guru
|
|
Join Date: Sep 2002
Posts: 237
|
|
I'm using it for static image hosting. It's nice and lean.
|

02-21-2005, 07:47 PM
|
|
Over there
|
|
Join Date: Oct 2004
Location: LA, CA
Posts: 1,059
|
|
I use thttpd right now for one of my really crappy servers. It does a great job of serving up HTML pages and static content.  But it is limited though.
|

02-22-2005, 04:21 AM
|
|
Aspiring Evangelist
|
|
Join Date: Jun 2003
Location: Ukiah, California
Posts: 394
|
|
You can also compile a thttpd/php combo that works quite well if you take into account a few quirks. There are issues with environmental vars with the combo among others.
If you take the time to properly test you applications/scripts and modify them if needed to run in this environment you just might be pleasantly surprised at how well it runs (better than apache by far in some situations).
edit: I should have mentioned that depending on your application you might be better off with a thttpd + php.cgi setup.
__________________
Jacob Turner -- Ringnebula Systems
Managed IT solutions for small business
Last edited by ringnebula; 02-22-2005 at 04:33 AM.
|

02-22-2005, 09:16 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Jan 2002
Posts: 31
|
|
The problem with the regular thttpd is that it can only run one php script at a time. As you might imagine, this becomes a bottleneck especially when database queries are involved.
There's a "premium" (commercial, non-free) version of thttpd that supports FastCGI to run multiple scripts: http://schumann.cx/premium-thttpd/
Or, you could go with Zeus
Another way to go would be to keep your normal Apache setup, but run a squid cache (proxy) server in front of it. Squid is a single process which would handle many repeat requests without passing them to Apache. This is probably best for a CMS.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|