nginx bad gateway when changing design

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;
    }
 }
  • 244
  • More
Replies (3)
    Login or Join to comment.