[Xitami] virtual host configuration

Charles Schmidling xitami@lists.xitami.org
Mon, 19 Jan 2004 23:52:46 -0800


I finally got bold enough to set up my virtual hosting and it actually
works.  It would be easier to at least set things up with the Web Based
Administration screens and come in later to the different .cfg files and
tweak them if needed.

To get to the WBA screens, there is a web page shortcut in your xitami
directory called "redirect" that refers to the at http://127.0.0.1/admin (if
not, that's where you go).  Hopefully you set up your admin accts
accordingly.

The "VHost Wizard" option helps set up the cfg files for each domain.  Tell
it where you want stuff placed and it will set it up for you.  The 8
character filename rule would be safe (.cfg is automatic).

Now, go into "Virtual Hosts" Configuration.  It lists all your VH configs
set up previously.  Hit the "Defaults..." button to access the default
configurations.  On the right are server options.  Choose "vhost."  This is
where you equate domain names to config files.  You can point multiple
domain names at the same config file.

examples:
  www.thisdomain.com       thisdom.cfg
  thisdomain.com                thisdom.cfg
  www.thisdomain.net          thisdom.cfg
 thatdomain.org                 thatdom.cfg
 media.anotherone.com      media.cfg

Each type of domain reference has to be defined.  Found that out the hard
way.  Oh, this sets up the "defaults.cfg" entries for vhosting.  If you
don't enter the "Default configuration screen first, I'm not sure where it
goes.  Also, the vhost screen in only so long.  You can add more or change
entries in the defaults.cfg file directly.  A cute bonus is that the wizard
way sorts the names for you.  Woo-hoo.

Basehost.cfg can be set up similarly.  A little advice: sketch out your
directory structure before you start; it will help continuity.  I moved my
"webpages" out of the Xitami folder and reorganized in c:\public.  It has
helped to locate stuff quicker.  The only question left is what to do with
all the new log files.

All you need now is your DNS to point your domains to your IP.  A Dynamic
DNS would be useful and quicker to propagate changes.  And redirection to
non-standard ports works really well too and eliminates scanners and buffer
overloaders.  Robots still come in, though.

Much Luck,

Charles


----- Original Message -----
From: "Jonathan Drew" <jonvdrew@hotmail.com>
To: <xitami@lists.xitami.org>
Sent: Monday, January 19, 2004 2:45 PM
Subject: Re: [Xitami] virtual host configuration


> my config file is "defaults.cfg" not "default" as I mistyped before and
> there is nothing in my log file and I restarted the web server after every
> change,  I am at a lost???
>
> ----- Original Message -----
> From: "Marc Doigny" <marc@verfaillie.be>
> To: <xitami@lists.xitami.org>
> Sent: Saturday, January 17, 2004 9:33 PM
> Subject: Re: [Xitami] virtual host configuration
>
>
> At 03:15 18/01/04, you wrote:
> >I have my default.cfg set to
>
>
> Are you sure it's "default.cfg" and not "defaults.cfg"?
> What shows up in your logfile?
> Is something written in it? (then the correct config file is read in but
> the webpages directory is not accessed)
> Is nothing written in it then the config file chicagoelegance was never
> read.
>
> Don't forget to restart the webserver after modifications so the config
> files are read in again.
>
> Marc
>
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami