Nginx config file for a website in FreeBsd and Linux are quite different?
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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×