In the previous recipe, we learned how we can run the Beego application locally. In this recipe, we will be deploying the same application with Nginx.
Deploying the Beego application with Nginx
Getting ready...
This recipe assumes you have Nginx installed and running on port 80. For me, it's installed at /Users/ArpitAggarwal/nginx.
How to do it...
- 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...