title: Serving golang scripts from nginx
body: <p>I want to write a web application with go language.</p>
  
  <p>When in run:</p>
  
  <pre><code>go run myscript.go
  </code></pre>
  
  <p>It works fine, i have worked with go "net/http" module
  Here is what i've done in my go script:</p>
  
  <pre><code>http.ListenAndServe(":8081", nil)
  </code></pre>
  
  <p>I want now to work with nginx. I have read i should put nginx in proxy mode. That means when nginx receive an http request on 80 http port, it will proxy it do 8081 port.</p>
  
  <p>How can i automatically lanuch and relaunch "go run" process ?</p>