X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/ae272cb5141c5347f205180b8ccf68eb56383ae2..63ac3b82c1cd33605e62688cd97688a6dae3cb9c:/lib/apache.dtl diff --git a/lib/apache.dtl b/lib/apache.dtl index f176787..ebfbeb4 100644 --- a/lib/apache.dtl +++ b/lib/apache.dtl @@ -30,6 +30,10 @@ extern type ssl; extern val no_ssl : ssl; extern val use_cert : ssl_cert_path -> ssl; +extern type php_version; +extern val php4 : php_version; +extern val php5 : php_version; + extern val vhost : host -> Vhost => [Domain] {WebPlaces : [web_place], SSL : ssl, @@ -37,13 +41,26 @@ extern val vhost : host -> Vhost => [Domain] Group : your_group, DocumentRoot : your_path, ServerAdmin : email, - SuExec : suexec_flag}; + SuExec : suexec_flag, + PhpVersion : php_version}; {{Add a new named Apache virtual host, specifying which nodes' Apache servers should answer requests for this host, whether it should use SSL, what UNIX user and group dynamic content generators should be run as, the filesystem path to the static content root, and the e-mail address to which error pages should direct visitors.}} +extern val vhostDefault : Vhost => [Domain] + {WebPlaces : [web_place], + SSL : ssl, + User : your_user, + Group : your_group, + DocumentRoot : your_path, + ServerAdmin : email, + SuExec : suexec_flag, + PhpVersion : php_version}; +{{Like vhost, but for, e.g., yourdomain.com instead of + www.yourdomain.com}} + context Location; extern type location;