in reply to Search replace with a block
Then I am able to get into the block. Would like to know what you guys think.
Hi
Have you heard of Config::General or Config::ApacheFormat and Apache::Admin::Config?
#!/usr/bin/perl -- use strict; use warnings; use Data::Dump qw/ dd /; use Config::General qw(ParseConfig); my $rawconfig = q{ <IfModule> ## workaround of some kind <IfModule mod_limitipconn.c> <Location /> MaxConnPerIP 12 NoIPLimit image/* </Location> <Location /location2> MaxConnPerIP 0 </Location> <Location /location3> MaxConnPerIP 0 </Location> </IfModule> }; my %config = ParseConfig(-String => $rawconfig, -AutoTrue => 1); dd( \%config ); __END__ { IfModule => { IfModule => { "mod_limitipconn.c" => { Location => { "" => {} }, M +axConnPerIP => 12, NoIPLimit => "image/*" }, }, Location => { "/location2" => { MaxConnPerIP => 0 }, "/location3" => { MaxConnPerIP => 0 }, }, }, }
Some of these modules are worth a try or two :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search replace with a block
by santoshrao99 (Initiate) on May 11, 2016 at 08:29 UTC | |
by beech (Parson) on May 11, 2016 at 09:05 UTC | |
by santoshrao99 (Initiate) on May 12, 2016 at 05:46 UTC | |
by beech (Parson) on May 12, 2016 at 06:31 UTC | |
by santoshrao99 (Initiate) on May 12, 2016 at 08:04 UTC |