ryandotsmith / nginx-buildpack

Run NGINX in front of your app server on Heroku
457 stars 248 forks source link

Static files #51

Open wieringen opened 9 years ago

wieringen commented 9 years ago

I just have some static html files that i want to deploy with nginx. I dont understand how to startup nginx for this.

stevepeak commented 9 years ago

This may be a good start for you. Within nginx.conf you can add under http.server new entries like these below.

location = /favicon.ico {
  rewrite (.*) https://newlocation.com/favicon.ico;
}