You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by rb...@rcbowen.com on 2023/05/22 13:43:12 UTC

Re: [users@httpd] Apache VirtualHost Config Tool management

On Thu, 2023-04-27 at 12:53 +0200, Carlos García Gómez wrote:
> Hello,
>  
> I am looking for a tool that makes it easier for me to manage the all
>  virtual hosts that I have configured.
>  
> Some tool that allows me to have a database of all the virtual hosts
> and that allows me to edit their configuration at any given time.
>  
> Is there anything implemented in LDAP, MySQL or some library that
> allows me to parse the configuration and edit it with some frontend?
>  
> I know I'm looking for something complicated but thanks for your
> comments


There are several modules that come with Apache httpd for simplifying
vhost config without introducing any third-party tools.

What I personally use is mod_macro to define a standard vhost layout,
and then all I need in my main configuration file is:

Use VHostMacro domainnamehere.com

Documentation here:
https://httpd.apache.org/docs/2.4/mod/mod_macro.html along with an
example of how you'd use this for vhosts.

Another option is mod_vhost_alias -
https://httpd.apache.org/docs/2.4/mod/mod_vhost_alias.html - I'm not a
big fan, but some people like it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org