Re: 502 Bad Gateway

2019-08-14 Thread Igor A. Ippolitov
Ken, Try setting 'proxy_buffer_size' to a higher value. Say 128k. On 14.08.2019 8:47, Ken Wright wrote: Maxim and anyone else who cares to chime in, I'm still enough of a newbie that I have trouble understanding the error logs.  The one for nginx reads the following at the end: 2019/08/12 22:

Re: 502 Bad Gateway

2019-08-14 Thread Radjin
> understand what's going on; nginx says it's working, and php shows the phpinfo page Thanks for that. Reading your comment about the phpinfo page made me repoint my root to the default html directory root web directory to test for the phpinfo page and I do not get it. I checked my sights-avai

Caching Method

2019-08-14 Thread hhypnos
I have configured nginx to cache static content, but i cant see any file in caching folder, also when i'm opening page in DevTool on network tab it show me: Response Header: access-control-allow-credentials: true access-control-allow-methods: GET access-control-allow-origin: http://google.com cache

RE: Caching Method

2019-08-14 Thread Reinis Rozitis
> I have configured nginx to cache static content, but i cant see any file in > caching > folder, also when i'm opening page in DevTool on network tab it show Unless you have somehow messed up the configuration in the email, something like: server { listen 443 ssl; server_na

Re: 502 Bad Gateway

2019-08-14 Thread Ken Wright
On 8/14/19 3:37 AM, Igor A. Ippolitov wrote: > Ken, > > Try setting 'proxy_buffer_size' to a higher value. Say 128k. Umm, what file would I find that in?  I've seen so many similar statements lately I can't keep them straight.  Sorry for being so dumb! Ken -- Registered Linux user #483005 I

CORS Error

2019-08-14 Thread justcode
Here is the code: location ~ \.php$ { include snippets/fastcgi-php.conf; include fastcgi_params; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_param SCRIPT_FILENAME /var/www/test/public$fastcgi_script_name; #CORS SETTINGS add_header 'Access-Control-Allow-Origin' '*' always; add_head

Re: 502 Bad Gateway

2019-08-14 Thread Igor A. Ippolitov
Ken, proxy_buffer_size and proxy_buffers are very similar. These configure buffers allocated for a response from an upstream. Both are documented here: http://nginx.org/en/docs/http/ngx_http_proxy_module.html . Please, have a look. The difference is that proxy_buffer_size buffer is always all