hi: is that http basic auth header removed by your remote machine? need to check your remote machine's web server configuration.
3 places to check for errors, 1 > symfony error log, 2> your remote machine web server log. 3> php error log. or your remote machine has some special security enhancements. anru On 11 March 2017 at 22:35, Dave Lane <d...@davelane.nz> wrote: > > On 11/03/17 16:17, Jim Tittsler wrote: > > On 03/10/2017 01:00 PM, Dave Lane wrote: > >> I don't know much about Symfony or the HTTP_AUTHORIZATION header which > >> gets sent and somehow processed by the http-foundation libary. > > > > Are you sure you are passing the header through the nginx proxy? (I > > don't understand your item 4. description above, so maybe that is what > > you are describing.) Does it work if you talk directly to the Docker > > port bypassing the proxy? If so, you probably need to add something like: > > > > proxy_set_header Authorization $http_authorization; > > > > Or you can experiment by putting a static, base64 encoded "user:pass" > > there to start with. > > Thanks for that suggestion, Jim - I've tried the base64 approach and > sadly it doesn't work on the remote instance (same 401 Access denied). > > Oddly, I have managed to get valid api responses (so, successful auth, > not 401) on my local instance, running with the same configuration of > host-based nginx using fastcgi (no nginx reverse proxy) to talk to PHP > on a Docker container (nginx in my case talks to the mapped port 9000 on > localhost, which is the port PHP-FPM is listening on)... > > It works with normal curl auth queries in the form of `curl -i > http(s)://user:pass@mautic.local/api/contacts`. > > Similarly Mautic's cloud-hosted reference version responds for me with > the same sort of queries (although I'm not sure how they configure it, > suspect they use Apache in any case). > > Puzzling. Cheers, > > Dave > -- > Dave Lane - d...@davelane.nz; https://davelane.nz; +64 21 229 8147 > GPG fingerprint: CE1E 5896 8D80 A78B E179 9E74 319B 083C 50EF AA94 > > -- > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to nzphpug@googlegroups.com > To unsubscribe, send email to > nzphpug+unsubscr...@googlegroups.com > --- > You received this message because you are subscribed to the Google Groups > "NZ PHP Users Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nzphpug+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to nzphpug@googlegroups.com To unsubscribe, send email to nzphpug+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "NZ PHP Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to nzphpug+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.