"Adam Chlipala" <[EMAIL PROTECTED]> writes: > Since I can't resist taking this opportunity to make sure one aspect > of the DomTool 2 philosophy is clear: there will be no new keywords > added to support any specific configuration directive. The language > is expressive enough that there shouldn't be a need. New general > features are possible, though.
Second try:
domain "hcoop.net" with
...
dns (dnsA "www" web_ip);
vhost "www" where
SharePrefix = "~"; (* allows vhost to be shared *)
DocumentRoot = "/home/adamc/html";
ServerAdmin = "[EMAIL PROTECTED]"
with
serverAlias "hcoop.net";
addDefaultCharset "mumbo-jumbo/incomprehensible";
location "/theMorgue" with
rewriteRule "A" "B" [];
end;
end;
vhost "private" where
... (* no SharePrefix defined *)
end;
end;
(* User who takes advantage of the globally available domain *)
domain "hcoop.net" with
vhost "www" where
(* at this point, a "vhost is not sharable" error *)
(* would be thrown, unless the previous definition *)
(* of this vhost had a SharePrefix *)
DocumentRoot = "public_html";
(* no "../" links permitted, and so on *)
with
(* various permitted directives and options; *)
end;
end;
Or, depending on whether "general features" includes new contexts in
the Apache module, the second part would be:
(* User who takes advantage of the globally available domain *)
domain "hcoop.net" with
shared_vhost "www" where
DocumentRoot = "public_html";
(* no "../" links permitted, and so on *)
with
(* various permitted directives and options *)
end;
vhost "my_special_place" where
(* error: you are not permitted to add vhosts *)
(* to this domain *)
DocumentRoot = "special"
with ...
end;
shared_vhost "private" where
(* error: this vhost is not sharable *)
with ...
end;
end;
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
/` |\ | | | Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC
|_] | \| |_| Reclaim your digital rights by eliminating DRM.
See http://www.defectivebydesign.org/what_is_drm for details.
pgp1hopo2ROcJ.pgp
Description: PGP signature
_______________________________________________ HCoop-SysAdmin mailing list [email protected] http://hcoop.net/cgi-bin/mailman/listinfo/hcoop-sysadmin
