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

Important Nginx paths

There are a few important Nginx paths we need to know about to work with the proxy server. In Nginx, we can host multiple sites (www.example1.com, www.exampl2.com, and so on) at the same time. Take a look at the following table:

Type Path Description
Configuration /etc/nginx/nginx.con This is the base Nginx configuration file. It can be used as the default file.
Configuration /etc/nginx/sites-available/ If we have multiple sites running within Nginx, we can have multiple configuration files.
Configuration /etc/nginx/sites-enabled/ These are the sites activated currently on Nginx.
Log /var/log/nginx/access.log This log file records the server activity, such as timestamp and API endpoints. 
Log /var/log/nginx/error.log ...
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