Templated config for vhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
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:

<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 
webmaster@$SERVER_NAME"
        php_admin_value open_basedir "/home/$DIR/http"
</Template>

now a config use this template

<VirtualHost *>
        $SERVER_NAME xgm.de
        $DIR xgmde
        $MORE_ALIASES someotherdomain.tld
</VirtualHost>

Can I do something like this?

Thanks,

Florian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux