Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.48 KB | None | 0 0
  1. location ~* ^/programma- {
  2.        ssi off;
  3.        set $upstream "";
  4.        set_by_lua $upstream '
  5.           local srvs = require "services"
  6.           local route = srvs.next("frontend-entry--beta{{BETA_ID}}")
  7.           if route == nil then
  8.               return "not_found_upstream"
  9.           end
  10.           return route
  11.       ';
  12.        proxy_pass http://$upstream;
  13.        include /var/www/cfg2/beta/beta-{{BETA_ID}}.proxy.inc;
  14.        proxy_set_header Host $host;
  15.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement