Web Hosting Talk







View Full Version : Can we install thttpd together with apache?


blackmoont
04-13-2004, 01:46 PM
Hello , i hear alot of good thing about thttpd , but can we install thttpd in another port when apache still running in port 80 ?

human39
04-13-2004, 02:10 PM
I dont see why not.

Check out the -p option via command line, or a simple change in the source could make it listen on a different port.


http://www.acme.com/software/thttpd/thttpd_man.html

PerfoHost
04-13-2004, 02:12 PM
Yes. No problem - apache use 80 port while thttpd over port.

Steven
04-13-2004, 11:27 PM
you can also run thttpd on another ip thats not used for sites and make apache not bind to it

Lem0nHead
04-14-2004, 12:17 AM
a cool thing would be to make the kernel decide which one should give the content

if static -> thttpd
else -> apache

hehe... i guess there're already some modules/hacks for kernel... but i don't do that on running kernels

blackmoont
04-14-2004, 03:58 AM
Lem0nHead . what do you mean ? thttpd and apache in same port or difference port ?

blackmoont
04-14-2004, 04:06 AM
i am planing to put all of my wma files to thttpd , but are there anyway to prevent hot link to my wma files under thttpd ? anybody here have used thttpd before ? and any comment about it ?
Thank you

Lem0nHead
04-14-2004, 10:56 AM
Originally posted by blackmoont
Lem0nHead . what do you mean ? thttpd and apache in same port or difference port ?

i think it's needed to be in different ports

AFAIK, there would be a kernel module checking for HTTPd requests on port 80
if it requests a static object (html, gif, jpg...), it's sent to thttpd, else it's sent to apache