Tyler Longren wrote:
>
> ...
> I need to get whatever the ServerName is. Here's what I have:
> open(APACHE_CONF, "/usr/local/apache/conf/httpd.conf") or die "Could not
> open Apache config file:\n$!\n";
> my @servernames;
> while() {
> push (@servernames, $1)
> if/ServerName\swww..(.*)/;
Hello list,
I need to search for all virtual domains in an apache config file. Example:
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/blah.com/www
ServerName www.blah.com
ErrorLog /home/blah.com/logs/error_log
CustomLog /home/blah.com/logs/access_log common