-- 
Hello all,

  I am a perl newb, and I want to parse apache server virtual hosts. 
What I am trying to accomplish is to end up with a hash with domain 
names as the keys and  complete virtual host entries as the values. 
Everyone I have talked to says that regular expressions are cake, but 
they still boggle my mind. here's a sample of what I'm trying to 
parse, in case you aren't familiar with apache config:

<VirtualHost 255.255.255.255>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /path/to/files
ServerName www.domain.com
</VirtualHost>

  There are about 200 Virtual Host entries on this server. There are 
usually 2 per domain: one with the www and one without. some of the 
entries also have lines for "user xxxx" and "group xxxx" for suexec 
support.

  Any help would be muchly appreciated. Even if somebody could just 
get me started down a decent path, that would be great.

Reply via email to