thttpd - virtual hosts

Hi,

This is my first thttpd install (I normally use apache) and am in the middle of setting up a new server with no domains live on it currently.

I was hoping I could describe my virtual host setup for thttpd in the hopes someone might be able to point out any errors I may have made.

I have thttpd running on 1 IP. This IP does not have apache listening on it.

thttpd listens on port 80

This IP will be for files.mydomain.com and images.mydomain.com

Both of which are in named all setup and ready to go.

I have thttpd starting with thttpd -C /etc/thttpd.conf -v

(the -v for virtual host)

thttpds default directory was /var/www/thttpd/html

In this directory I have created 2 directories for my virtual sites.

files.mydomain.com and images.mydomain.com

I have chowned (-R) these directories thttpd:www

Is this all I need to do for thttpd to have those virtual sites working ?

Also is it possible to have thttpd listen to 2 IPs ? If not is it possible for me to virtual host the 2 sites on the one IP ?

Thanks

 

 

 

 

Top