httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Lindner <>
Subject [users@httpd] Templated config for vhost
Date Wed, 13 Dec 2006 18:03:34 GMT
is is possible to define a template for a vhost config entry and use this 
template in other entries. 
For example I have the template:

        ServerName $SERVER_NAME
        ServerAlias *.$SERVER_NAME $MORE_ALIASES
        DocumentRoot /home/$DIR/http/pub
        CustomLog /home/$DIR/http/log/access.log combined
        ErrorLog /home/$DIR/http/log/error.log
        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f 
        php_admin_value open_basedir "/home/$DIR/http"

now a config use this template

<VirtualHost *>
        $DIR xgmde
        $MORE_ALIASES someotherdomain.tld

Can I do something like this?



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message