I have been running a small suite of Drupal sites as docker containers behind a well-tested docker proxy https://github.com/jwilder/nginx-proxy.
All was working fine until I added LetsEncrypt companion module to docker-compose (plus other configuration on sites) to make the sites secure. I followed instructions (with a few amendments) here: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion/wiki/Do.... Most of the sites "just worked" as they did before (content, forms, ajax, etc) with https:// redirects enabled automatically after docker-compose up command. However two of my sites are not responding to POST requests for forms, content creation, comments, logins etc. They both respond with a white screen and "Not Allowed" to any POST request. I can access the sites and content is loading fine on both sites but POST Submissions are broken.
There is no difference in configuration for these broken sites compared to the ones that work and there are no log errors. If anyone has any insights into the where and why of "Not Allowed" messages I would be eternally grateful.
Summary: on two of about 8 sites with identical configuration I am getting white screen with "Not Allowed" message and no error log.
A working request/response to "Save Article" looks like this:
Request URL: https://clean.syntapse.co.uk/node/add/article
Request Method: POST
Status Code: 303
Remote Address: xx.xx.xx.xx:443
Referrer Policy: no-referrer-when-downgrade
cache-control: must-revalidate, no-cache, private
content-language: en
content-type: text/html; charset=UTF-8
date: Mon, 30 Sep 2019 16:13:21 GMT
expires: Sun, 19 Nov 1978 05:00:00 GMT
location: https://clean.syntapse.co.uk/node/11
server: nginx/1.14.0
status: 303
strict-transport-security: max-age=31536000
vary:
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-generator: Drupal 8 (https://www.drupal.org)
x-powered-by: PHP/7.2.8
x-ua-compatible: IE=edge
The broken "Save Article" POST like this:
Request URL: https://www.syntapse.co.uk/node/add/article
Request Method: POST
Status Code: 403
Remote Address: xx.xx.xx.xx:443
Referrer Policy: no-referrer-when-downgrade
cache-control: no-cache, private
content-type: text/html; charset=UTF-8
date: Mon, 30 Sep 2019 16:15:45 GMT
server: nginx/1.14.0
status: 403
strict-transport-security: max-age=31536000
x-powered-by: PHP/7.2.8
:authority: www.syntapse.co.uk
:method: POST
:path: /node/add/article
:scheme: https
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
accept-encoding: gzip, deflate, br
accept-language: en-GB,en-US;q=0.9,en;q=0.8
cache-control: max-age=0
content-length: 3313
content-type: multipart/form-data; boundary=----WebKitFormBoundaryAS4SwnpA2WxkLuHg
cookie: SESS1de9baf5a15afce36fc5d9c6c12d61c8=bo04Lx31L7OKjyyXkEjDLVWAFGyJIrA13VWW4MBut-U
dnt: 1
origin: https://www.syntapse.co.uk
referer: https://www.syntapse.co.uk/node/add/article
sec-fetch-mode: navigate
sec-fetch-site: same-origin
sec-fetch-user: ?1
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
I am completely lost with this problem compounded by the fact its working on most sites except two. Any help much appreciated.
Thanks
Thanks