[Xitami] Secondary domains hosted with xitami
Pieter Hintjens
xitami@lists.xitami.org
Sun, 12 Jun 2005 10:39:25 +0200
All,
To configure virtual hosts, you have to know two things. First, what
this means and how it works technically. For that, the Xitami manual
is pretty detailed and I'd say, yes, RTFM. It's the authoratitive
explanation. Second, how to set the server config files to actually
make a new vhost. Since there are several options, the advice of
others may help.
Here is what we do for virtual hosts.
1. create a directory, "vhost", and a subdirectory for each virtual
host's home page.
2. create a .cfg file for the virtual host with the name of the
domain, defining:
[Accesslog]
Filename =3D "mydomain.log"
[Security]
Filename =3D "mydomain.aut"
[Server]
Webpages =3D "vhosts/mydomain.com"
[Wsx]
Admin =3D ""
Setup =3D ""
3.disable all WBA access for this domain, in mydomain.aut:
[/Admin]
admin=3D-
[/Setup]
admin=3D-
4. create an FTP user for the domain to allow uploading of web pages,
in ftpusers.aut:
[mydomain-<something>]
access=3DGPDMR
password=3D<password>
root=3D<xitami-home>/vhosts/mydomain.com
5. define the virtual host in defaults.cfg:
[Virtual-Hosts[
mydomain.com =3D "mydomain.cfg"
www.mydomain.com =3D "mydomain.cfg"
The virtual host wizard does most of this but does not collect virtual
hosts under a single directory, which keeps things tidy.
After defining a new virtual host, stop and restart Xitami. Make sure
the permissions on the vhost directory are correct and upload your
pages.
-Pieter Hintjens