From owner-freebsd-ports Sat Apr 20 14:47:59 2002 Delivered-To: freebsd-ports@freebsd.org Received: from runcirc.demon.co.uk (runcirc.demon.co.uk [158.152.9.225]) by hub.freebsd.org (Postfix) with ESMTP id 4CA1637B41A for ; Sat, 20 Apr 2002 14:47:52 -0700 (PDT) Received: from runcircle.co.uk (dev.local [192.168.1.3]) by runcirc.demon.co.uk (8.11.2/8.11.2) with ESMTP id g3KLlGw05480; Sat, 20 Apr 2002 22:47:16 +0100 (BST) Received: (from roger@localhost) by runcircle.co.uk (8.11.6/8.11.2) id g3KLlFh02916; Sat, 20 Apr 2002 22:47:15 +0100 (BST) (envelope-from roger) Date: Sat, 20 Apr 2002 22:47:14 +0100 From: Roger McCalman 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD dev.local 4.4-RELEASE FreeBSD 4.4-RELEASE Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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