How to do it...

  1. Open the Nginx configuration file at /Users/ArpitAggarwal/nginx/conf/nginx.conf and replace the location block under server with the following content:
location / {  # root html;  # index index.html index.htm;  proxy_pass http://localhost:8080/;}
  1. Start Nginx by executing the following command:
$ cd /Users/ArpitAggarwal/nginx/sbin$ ./nginx
  1. Run the Beego application by executing the following command:
$ bee run

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.