Mailing List webobjects-dev@wocommunity.org Message #208
From: Jesse Tayler <webobjects-dev@wocommunity.org>
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
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Sounds like apache, are you sure things like mod_webobjects are loaded and those base things?

I can’t read apache rules…sorry! They are all just random characters to me…I guess the questions is what’s 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”

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









Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster