You are not logged in.

#1 2010-12-11 09:50:54

whoops
Member
Registered: 2009-03-19
Posts: 891

apache2 sites-available automations?

Hi!


I'd like to have multiple sites configured in very similar ways. Can't find anything on what sort of automation is possible here... don't have a clue on where to start.

Is there some way to use functions / variables / bash or something directly in these files? Like access the file name of the config file and use it for the domain name that has to be entered in multiple places (I append it to the logs name, too...)? I'd love to have a default site config for everything that I can just include in every single one & replace the domain name placeholder with the config filename or something... and override settings after the default if necessary.


thx!

Offline

Board footer

Powered by FluxBB