Thread: subdomain hosting on freebsd w/thttpd

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    subdomain hosting on freebsd w/thttpd

    On my localhost I have thttpd server installed with the 'vhost' option on.

    /etc/hosts: 127.0.0.1 me.com

    in the Document root of thttpd I have a folder of called me.com and it gets served perfectly.

    Now I want its.me.com so I made a folder with that name on the same level as the me.com folder, it doesn't work unless I place the following line in the /etc/hosts file: 127.0.0.1 its.me.com

    So the question is: How can I get the server to serve subdomains/virtualhosts without adding lines to the hosts file ? how would this be done in a production environment ? Would you have to add it to your DNS ? How ?

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    How can I get the server to serve subdomains/virtualhosts without adding lines to the hosts file ?
    so you want to host subdomains without editing the host files. Makes sense.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Free Web Hosting
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 06-21-2005, 02:23 AM
  2. hosting vs parking?
    By afreedboy in forum Tech Board
    Replies: 5
    Last Post: 09-28-2004, 06:17 AM
  3. freebsd and redhat dual boot.
    By xddxogm3 in forum Linux Programming
    Replies: 1
    Last Post: 05-09-2004, 06:06 PM
  4. FreeBSD rocks!
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 08-25-2003, 08:11 PM