Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a good library to manipulate Apache2 config files? [closed]

I'd like to create a script to manipulate Apache2 configuration directly, reading and writing its properties (like adding a new VirtualHost, changing settings of one that already exists).

Are there any libs out there, for Perl, Python or Java that automates that task?

like image 536
kolrie Avatar asked Oct 18 '08 20:10

kolrie


People also ask

Where are Apache config files stored?

All the configuration files for Apache are located in /etc/httpd/conf and /etc/httpd/conf. d . The data for websites you'll run with Apache is located in /var/www by default, but you can change that if you want.

Is apache2 Conf the same as httpd conf?

The default configuration file is called " httpd. conf " (or " apache2.


1 Answers

In Perl, you've got at least 2 modules for that:

Apache::ConfigFile

Apache::Admin::Config

like image 78
sebthebert Avatar answered Oct 17 '22 04:10

sebthebert