Skip to Content
Building RESTful Web services with Go
book

Building RESTful Web services with Go

by Naren Yellavula
December 2017
Intermediate to advanced
316 pages
6h 58m
English
Packt Publishing
Content preview from Building RESTful Web services with Go

Installing and configuring Nginx

Nginx is a high performant web server and load balancer, and is well suited to deploying high traffic websites. Even though this decision is opinionated, Python and Node developers usually use this.

Nginx can also act as an upstream proxy server that allows us to redirect the HTTP requests to multiple application servers running on the same server. The main contender of Nginx is Apache's httpd. Nginx is an excellent static file server that can be used by the web clients. Since we are dealing with APIs, we will look into aspects of dealing with HTTP requests. 

On Ubuntu 16.04, use these commands to install Nginx:

sudo apt-get updatesudo apt-get install nginx

On macOS X, you can install it with brew:

brew install ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RESTful Web Services with Go - Second Edition

Hands-On RESTful Web Services with Go - Second Edition

Naren Yellavula
Microservices with Go

Microservices with Go

Alexander Shuiskov

Publisher Resources

ISBN: 9781788294287Supplemental Content