regex - Use same settings for two different locations on nginx -


i have following configs @ nginx.conf:

   location /records/load.js {         proxy_next_upstream off;          proxy_pass http://scala-front;         break;     }     location /features/download.csv {         proxy_next_upstream off;          proxy_pass http://scala-front;         break;     } 

as can see, both locations share same settings. there anyway configure multiple locations same settings have 1 block? (i've tried regex far can't figure out how work slashes locations containing slashes).

thanks


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -