X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "Jesse Tayler" Received: from mail-qk1-f169.google.com ([209.85.222.169] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 26037280 for webobjects-dev@wocommunity.org; Thu, 17 Jun 2021 16:44:58 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=209.85.222.169; envelope-from=jtayler@oeinc.com Received: by mail-qk1-f169.google.com with SMTP id u30so3354617qke.7 for ; Thu, 17 Jun 2021 07:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oeinc-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=KrTWRV47pKhpiN6tjPHQmhlo2iNzrIGLSd/0UygMOVQ=; b=NezGMomWgGcChIG8k9uN4WdidN9YtUXKLAwimX5Tk6kw7mahDQa37DvHKRxGBL5/fj BahtFGeP9Cgp5U8FCQ9mZZ/GFFmqu0jX0uat+sXMG4VtfFqlQma69Xgc61l3T6gzgr8v 577drP6SgytxTQr+lmBZVksOo86nGePiOGw7fYFEJmkCVKUjwytFX51i9dJgEPMzc/zK hP1G7QRXUefam7sLNR7g2br+WyV0JMiSjlPglmvMjIvERK1QY52T8SL/AcVALckQBazZ Z//aQ4jy4ea6nvMCzXGGHUxy+gkfGODxhrwurATuNHLmKpm1A/sWLm8xt+9SE+zcgo1e E22Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=KrTWRV47pKhpiN6tjPHQmhlo2iNzrIGLSd/0UygMOVQ=; b=KOcAioioqWkWx+TRTzylnM+kZoSFDNYnUO9gY7D+f6MtVzOots/1OOJ8Z3KXmFVCwm GAOh2+xiz7mJvPqferC3pUZ4V0DnW+uxrBJX1YSWCHcbdi/5I8Pw3jpciGsI9uTeggYP R8h4O3Bfy09OD804ey1gZBC3K7aw/meZc6ovCyv9CEvbvRyu7SPzeZ+7YOBrV3xE6+0G tzIhQLwpVVn+SKQaC5CR+3c44k8FrFEI2M036KPzO6Of0Aa0p7CTEsoee9UPNhz40q+t UK17rLpXkLMDJDdMgNr8ZBUfpmUv+gMfX0n8WNSaTbDbNP18Z0/JPkhBCPwR9Ge2OZeR C6BQ== X-Gm-Message-State: AOAM531JLPki6w6d1NPd/zq2/8UUElkI+kWnyDja/sqkrWRdtjH1TiIm 4Alc3V3WLbvrtjPwevB60CyBO5R5zO1LN+RM X-Google-Smtp-Source: ABdhPJxLlhhkHOATfP7HK5F6xr68m+JUKdxFc6MLBTsxUsR1cLBl1KaqSjY3Ugs2q4Zv/u8X2b6V1g== X-Received: by 2002:a37:b6c4:: with SMTP id g187mr4236077qkf.491.1623941076217; Thu, 17 Jun 2021 07:44:36 -0700 (PDT) Return-Path: Received: from [192.168.1.16] ([69.169.5.176]) by smtp.gmail.com with ESMTPSA id z6sm1841159qke.24.2021.06.17.07.44.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jun 2021 07:44:35 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_3F41B9D2-3997-4BA9-9524-1598CED59823" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.2\)) Subject: Re: [WO-DEV] Deployment issue on Catalina "You don't have permission to access this resource" Date: Thu, 17 Jun 2021 10:44:33 -0400 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <4A6A86F4-BA24-4CE4-B243-5A33613420E9@oeinc.com> X-Mailer: Apple Mail (2.3654.60.0.2.2) --Apple-Mail=_3F41B9D2-3997-4BA9-9524-1598CED59823 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Sounds like apache, are you sure things like mod_webobjects are loaded = and those base things? I can=E2=80=99t read apache rules=E2=80=A6sorry! They are all just = random characters to me=E2=80=A6I guess the questions is what=E2=80=99s = changed or is this a new setup giving you a hard time? > On Jun 17, 2021, at 10:40 AM, Markus Ruggiero (rucotec) = wrote: >=20 > Probably missing something so basic that I simply do not see it. Must = be too hot outside (33 Celsius) and no aircon in the office (31 = Celsius).=20 > Hope someone can point me in the right direction. >=20 > Deployment setup on my dev machine (MBpro, macOS Catalina, JRE 15). = Apache installed via homebrew (Apache/2.4.46 (Unix)), Apple's Apache not = in use >=20 > Apache configured with various virtual hosts, resolved through = /etc/hosts. This all works, Apache serves static resources from these = hosts. >=20 > JavaMonitor runs, wotaskd runs, Apache loads WOAdaptor by including = wo_apache.conf > apachectl -F knows about WOAdaptor, so I assume it is properly loaded >=20 > wo_apache.conf has this line: > WebObjectsAlias /apps/WebObjects=20 >=20 > The Apache config file http.conf has this line > # ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) = "/usr/local/var/www/CGI-Executables/$1" > ScriptAliasMatch ^/apps/((?!(?i:webobjects)).*$) = "/usr/local/var/www/CGI-Executables/$1" >=20 > (tried both variants, with cgi-bin and the one with apps) >=20 > In WOMonitor this is the URL to the adaptor: > http://woapps/apps/WebObjects > (woapps being one of my virtual hosts) >=20 > When I try to access an installed app the browser reports an error > "You don't have permission to access this resource=E2=80=9D >=20 > and Apache puts a message into the error log file: > [Thu Jun 17 13:43:57.329921 2021] [authz_core:error] [pid 42093] = [client 127.0.0.1:64420] AH01630: client denied by server configuration: = /apps >=20 > /apps is not a directory but the first part of the WO URL and thus = should go to the WOAdaptor. Has the ScriptAliasMatch (see above) = anything to do with this? >=20 > Thanks for any help > ---markus--- >=20 >=20 > Markus Ruggiero >=20 > rucotec GmbH web https://rucotec.ch = > Steinenvorstadt 79 email markus.ruggiero@rucotec.ch = > 4051 Basel / Switzerland mobile +41 79 508 4701 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 --Apple-Mail=_3F41B9D2-3997-4BA9-9524-1598CED59823 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Sounds like apache, are you sure things like mod_webobjects = are loaded and those base things?

I can=E2=80=99t read apache rules=E2=80=A6sorry! They are = all just random characters to me=E2=80=A6I guess the questions is = what=E2=80=99s changed or is this a new setup giving you a hard time?

On Jun 17, 2021, at 10:40 AM, Markus Ruggiero (rucotec) = <webobjects-dev@wocommunity.org> wrote:

Probably missing = something so basic that I simply do not see it. Must be too hot outside = (33 Celsius) and no aircon in the office (31 Celsius). 
Hope someone can point me in the right direction.

Deployment setup on my = dev machine (MBpro, macOS Catalina, JRE 15). Apache installed via = homebrew (Apache/2.4.46 (Unix)), Apple's Apache not in use

Apache configured with = various virtual hosts, resolved through /etc/hosts. This all works, = Apache serves static resources from these hosts.

JavaMonitor runs, wotaskd runs, Apache = loads WOAdaptor by including wo_apache.conf
apachectl -F knows about = WOAdaptor, so I assume it is properly loaded

wo_apache.conf has this = line:
WebObjectsAlias   = /apps/WebObjects 

The Apache config file http.conf has this line
# ScriptAliasMatch = ^/cgi-bin/((?!(?i:webobjects)).*$) = "/usr/local/var/www/CGI-Executables/$1"
ScriptAliasMatch ^/apps/((?!(?i:webobjects)).*$) = "/usr/local/var/www/CGI-Executables/$1"

(tried both variants, with cgi-bin and = the one with apps)

In WOMonitor this is the URL to the adaptor:
(woapps = being one of my virtual hosts)

When I try to = access an installed app the browser reports an error
"You don't have permission to access this = resource=E2=80=9D

and Apache puts a message into the error log file:
[Thu Jun 17 13:43:57.329921 2021] = [authz_core:error] [pid 42093] [client 127.0.0.1:64420] AH01630: client = denied by server configuration: /apps

/apps is not a directory but the first = part of the WO URL and thus should go to the WOAdaptor. Has the = ScriptAliasMatch (see above) anything to do with this?

Thanks for any = help
---markus---


Markus = Ruggiero

rucotec GmbH              =           web https://rucotec.ch
Steinenvorstadt 79          =       email markus.ruggiero@rucotec.ch
4051 Basel / = Switzerland         mobile +41 79 508 4701









= --Apple-Mail=_3F41B9D2-3997-4BA9-9524-1598CED59823--