{"id":1223,"date":"2017-11-09T00:11:11","date_gmt":"2017-11-08T22:11:11","guid":{"rendered":"https:\/\/burakcaliskan.org\/blog\/?p=1223"},"modified":"2017-12-09T00:43:09","modified_gmt":"2017-12-08T22:43:09","slug":"freebsd-nginx-conf","status":"publish","type":"post","link":"https:\/\/burakcaliskan.org\/blog\/freebsd-nginx-conf\/","title":{"rendered":"FreeBSD nginx.conf"},"content":{"rendered":"<p>\/usr\/local\/etc\/nginx\/nginx.conf i\u00e7indekiler,<\/p>\n<p>load_module \/usr\/local\/libexec\/nginx\/ngx_mail_module.so;<br \/>\nload_module \/usr\/local\/libexec\/nginx\/ngx_stream_module.so;<\/p>\n<p>#user nobody;<br \/>\nuser www;<br \/>\nworker_processes 1;<br \/>\nerror_log \/var\/log\/nginx\/error.log info;<!--more--><\/p>\n<p># This default error log path is compiled-in to make sure configuration parsing<br \/>\n# errors are logged somewhere, especially during unattended boot when stderr<br \/>\n# isn&#8217;t normally logged anywhere. This path will be touched on every nginx<br \/>\n# start regardless of error log location configured here. See<br \/>\n# https:\/\/trac.nginx.org\/nginx\/ticket\/147 for more info.<br \/>\n#<br \/>\n#error_log \/var\/log\/nginx\/error.log;<br \/>\n#<\/p>\n<p>#pid logs\/nginx.pid;<\/p>\n<p>events {<br \/>\nworker_connections 1024;<br \/>\n}<\/p>\n<p>http {<br \/>\ninclude mime.types;<br \/>\ndefault_type application\/octet-stream;<\/p>\n<p>access_log \/var\/log\/nginx\/access.log;<\/p>\n<p>sendfile on;<br \/>\nkeepalive_timeout 65;<\/p>\n<p>server {<br \/>\nlisten 80;<br \/>\nserver_name linoxide.com www.linoxide.com;<br \/>\nroot \/usr\/local\/www\/nginx;<br \/>\nindex index.php index.html index.htm;<\/p>\n<p>location \/blog\/ {<br \/>\ntry_files $uri $uri\/ \/blog\/index.php?$args;<br \/>\n}<br \/>\nlocation \/ {<br \/>\ntry_files $uri $uri\/ =404;<br \/>\n}<\/p>\n<p>error_page 500 502 503 504 \/50x.html;<br \/>\nlocation = \/50x.html {<br \/>\nroot \/usr\/local\/www\/nginx-dist;<br \/>\n}<\/p>\n<p>location ~ \\.php$ {<br \/>\ntry_files $uri =404;<br \/>\nfastcgi_split_path_info ^(.+\\.php)(\/.+)$;<br \/>\nfastcgi_pass unix:\/var\/run\/php-fpm.sock;<br \/>\nfastcgi_index index.php;<br \/>\nfastcgi_param SCRIPT_FILENAME $request_filename;<br \/>\ninclude fastcgi_params;<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/usr\/local\/etc\/nginx\/nginx.conf i\u00e7indekiler, load_module \/usr\/local\/libexec\/nginx\/ngx_mail_module.so; load_module \/usr\/local\/libexec\/nginx\/ngx_stream_module.so; #user nobody; user www; worker_processes 1; error_log \/var\/log\/nginx\/error.log info;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[170,383,218],"tags":[],"_links":{"self":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1223"}],"collection":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/comments?post=1223"}],"version-history":[{"count":2,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1223\/revisions"}],"predecessor-version":[{"id":1245,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1223\/revisions\/1245"}],"wp:attachment":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media?parent=1223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/categories?post=1223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/tags?post=1223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}