httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 53059] Make httpd easier relocatable by using a variable sbindir
Date Wed, 11 Apr 2012 09:53:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53059

--- Comment #1 from Igor Galić <i.galic@brainsware.org> 2012-04-11 09:53:42 UTC ---
I have made slight modifications to this patchset -- to actually work. - But of
course it only works with the default layout:

bin/apachectl:

  HTTPD="$SBINDIR/httpd"
  #
  # pick up any necessary environment variables
  if test -f $SBINDIR/envvars; then
    . $SBINDIR/envvars
  fi

  if test "x$SERVER_ROOT" != "x"; then
    HTTPD="$HTTPD -d $SERVER_ROOT"
  fi


bin/envvars:

  envvars=$( readlink -f $0 )
  export SERVER_ROOT=${envvars%*/*/*}

conf/httpd.conf:

  ServerRoot "${SERVER_ROOT}"
  DocumentRoot "${SERVER_ROOT}/htdocs"
  # .. etc..

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message