Set up Varnish with heroku app - what backend host and port do i use? -


i'm trying set varnish server heroku app. i'm having difficulties setting backend host , port point heroku app.

i tried entering this:

backend default {     .host = "gavedrysset-api.herokuapp.com";     .port = "80"; } 

this not work , giving me heroku error page saying this:

heroku | no such app  there no app configured @ hostname. perhaps app owner has renamed it, or mistyped url. 

how can make varnish point heroku app?

i figured out solution. have no idea doing though... found answer in this thread.

i added default.vcl:

sub vcl_recv {     set req.http.host = "gavedrysset-api.herokuapp.com"; } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -