Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 22:47:14 +0100
From:      Roger McCalman <roger@runcircle.co.uk>
To:        ports@freebsd.org
Cc:        roger@runcircle.co.uk
Subject:   Change to allow www/apache13-modssl httpd to be run as a normal user
Message-ID:  <20020420224703.P63375@dev.local>

next in thread | raw e-mail | index | archive | help

--8P1HSweYDcXXzwPJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I often run Apache as a normal user (on a high port) for testing and
for use behind a reverse proxy. When using mm with mod_ssl it is not
possible as the default path for the file is /var/log which
is not writtable by a user.

Attached are two patch files you may be intersted in.

They patch the Makefile to define DEAPI_MM_CORE_PATH to be "logs"
i.e. relative. The other patch prevents the definition in apaci
(created via the configure script) from overriding
it.

Cheers, Roger


--8P1HSweYDcXXzwPJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ay

*** Makefile.orig	Sat Apr 20 22:39:26 2002
--- Makefile	Sat Apr 20 22:39:45 2002
***************
*** 70,76 ****
  OPTIM=		-DHARD_SERVER_LIMIT=512 \
  		-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
  		-DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\" \
! 		-DACCEPT_FILTER_NAME=\\"httpready\\"
  
  .if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES
  OPTIM+=		-DBUFFERED_LOGS -DFD_SETSIZE=1024
--- 70,78 ----
  OPTIM=		-DHARD_SERVER_LIMIT=512 \
  		-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
  		-DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\" \
! 		-DACCEPT_FILTER_NAME=\\"httpready\\" \
!                 -DEAPI_MM_CORE_PATH=\\"logs\\"
! 
  
  .if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES
  OPTIM+=		-DBUFFERED_LOGS -DFD_SETSIZE=1024

--8P1HSweYDcXXzwPJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-az

*** configure.orig	Sat Apr 20 22:44:58 2002
--- configure	Sat Apr 20 17:27:39 2002
***************
*** 1372,1378 ****
  echo "echo '-DACCESS_CONFIG_FILE=\"${sysconfdir_relative}access.conf\"'" >>$src/apaci
  echo "echo '-DRESOURCE_CONFIG_FILE=\"${sysconfdir_relative}srm.conf\"'" >>$src/apaci
  echo "echo '-DSSL_CERTIFICATE_FILE=\"${sysconfdir_relative}ssl.crt/server.crt\"'" >>$src/apaci
! echo "echo '-DEAPI_MM_CORE_PATH=\"${runtimedir_relative}${thetarget}.mm\"'" >>$src/apaci
  chmod a+x $src/apaci
  CFLAGS="$CFLAGS \\\`\$(SRCDIR)/apaci\\\`"
  
--- 1372,1378 ----
  echo "echo '-DACCESS_CONFIG_FILE=\"${sysconfdir_relative}access.conf\"'" >>$src/apaci
  echo "echo '-DRESOURCE_CONFIG_FILE=\"${sysconfdir_relative}srm.conf\"'" >>$src/apaci
  echo "echo '-DSSL_CERTIFICATE_FILE=\"${sysconfdir_relative}ssl.crt/server.crt\"'" >>$src/apaci
! #echo "echo '-DEAPI_MM_CORE_PATH=\"${runtimedir_relative}${thetarget}.mm\"'" >>$src/apaci
  chmod a+x $src/apaci
  CFLAGS="$CFLAGS \\\`\$(SRCDIR)/apaci\\\`"
  

--8P1HSweYDcXXzwPJ--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020420224703.P63375>