I agree in principle, although it's not really related to configuring VirtualHosts so it would probably deserve to be discussed in a node of its own.
...By someone considerably more skilled than myself :-/
I worked around the problem by scanning the passwd/group files manually. Not at all portable ofcourse, but that's no particular concern of mine.
my %users = (); my %groups = (); my $pfname = '/etc/passwd'; open(my $pfh, $pfname) || warn "Error reading $pfname: $!"; while (my $line = <$pfh>) { my ($name) = split(/:/, $line); $users{$name} = 1; } close $pfh; my $gfname = '/etc/group'; open(my $gfh, $gfname) || warn "Error reading $gfname: $!"; while (my $line = <$gfh>) { my ($name) = split(/:/, $line); $groups{$name} = 1; } close $gfh;
Time flies when you don't know what you're doing
In reply to Re^2: [SOLVED] Configuring Apache VirtualHosts using mod_perl 2
by FloydATC
in thread [SOLVED] Configuring Apache VirtualHosts using mod_perl 2
by FloydATC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |