diff --git a/ApacherOverzicht.sh b/ApacherOverzicht.sh index 388c450..5df311c 100644 --- a/ApacherOverzicht.sh +++ b/ApacherOverzicht.sh @@ -33,8 +33,8 @@ find -L "$CONFIG_DIR" -type f \( -name "*.conf" -o -name "*.vhost" -o -name "*.c port=$0 gsub(/.*:/,"",port) gsub(/>.*/,"",port) - n=split(cfgfile, a, "/") - f=a[n] + f = cfgfile + sub(".*/", "", f) } in_vhost && /ServerName/ {