{"id":1237,"date":"2017-12-06T23:45:04","date_gmt":"2017-12-06T21:45:04","guid":{"rendered":"https:\/\/burakcaliskan.org\/blog\/?p=1237"},"modified":"2018-01-05T18:05:42","modified_gmt":"2018-01-05T16:05:42","slug":"freebsd-nginx-site-root","status":"publish","type":"post","link":"https:\/\/burakcaliskan.org\/blog\/freebsd-nginx-site-root\/","title":{"rendered":"FreeBSD nginx site root"},"content":{"rendered":"<p>Dosya Yolu:\u00a0 \/usr\/local\/etc\/nginx\/nginx.conf<\/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}<\/p>\n<p>server {<br \/>\nlisten 80;<br \/>\nserver_name tenuronder.com www.tenuronder.com;<br \/>\nroot \/usr\/local\/www\/tenuronder.com;<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\/tenuronder.com;<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}<\/p>\n<p>server {<br \/>\nlisten 80;<br \/>\nserver_name burakcaliskan.com www.burakcaliskan.com;<br \/>\nroot \/usr\/local\/www\/burakcaliskan.com.tr;<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\/burakcaliskan.com.tr;<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}<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dosya Yolu:\u00a0 \/usr\/local\/etc\/nginx\/nginx.conf 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,1],"tags":[180,299,153,751],"_links":{"self":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1237"}],"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=1237"}],"version-history":[{"count":3,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1237\/revisions"}],"predecessor-version":[{"id":1266,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1237\/revisions\/1266"}],"wp:attachment":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media?parent=1237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/categories?post=1237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/tags?post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}