I get a 502 nginx bad gateway error when changing the design mix from the front end
I used this code:
location / {
index index.html index.htm index.php;
rewrite "^/path-to-una/page/(.*)$" /path-to-una/page.php?i=$1 last;
rewrite "^/path-to-una/m/(.*)$" /path-to-una/modules/index.php?r=$1 last;
rewrite "^/path-to-una/s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)" /path-to-una/storage.php?o=$1&f=$2 last;
if (!-e $request_filename ) {
rewrite ^/path-to-una/(.+)$ /path-to-una/r.php?_q=$1 last;
break;
}
}
Comments
I needed to ad this to config:
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
Hello @Gene!
Just add those lines before the closing } sign of the location block:
Hello, same issue here but adding your proxy settings did not fix it for me; did it fix it for you?