Re: apache configuration screwup
On Mon, Oct 20, 2003 at 08:47:10PM +0200, Chipzz wrote:
> Apache isn't being configured correctly on a box of a friend of mine -
> It's a bug in the debconf script.
Your friend has an old version of apache then. Your patch is hard to
read because it tells me you replaced the perl script with another,
almost identical one. Assuming you just added "\s*" in front of "port",
then this was done over a week ago.
> - PORT=`perl -e " OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i && ! /#.*<virtualhost/i) || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /port/i}" < $i | tail -n 1 | awk '{print $2}'`
> + PORT=`perl -e " OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i && ! /#.*<virtualhost/i) || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}"
> < $i | tail -n 1 | awk '{print $2}'`
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Reply to: