Report this

What is the reason for this report?

Nginx config file for a website in FreeBsd and Linux are quite different?

Posted on April 29, 2017

I know how to setup nginx in Linux. In FreeBsd I thought it’d exactly the same, except maybe a location of the config file. In Linux it’s /etc/nginx/sites-available/default, in FreeBsd /usr/local/etc/nginx/nginx.conf

However, according to a tutorial here, in FreeBsd the config is also quite different: in Linux I’d have 2 sections of “server” for http and https. In FreeBsd there has to be “user” on the top level and number of workers. In other things which are pretty different. Not just paths, but the structure and sections.

Is that really so and they’re indeed different?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.