{"id":856,"date":"2016-03-17T11:49:11","date_gmt":"2016-03-17T10:49:11","guid":{"rendered":"http:\/\/webpiraten.de\/?p=856"},"modified":"2016-03-17T11:50:46","modified_gmt":"2016-03-17T10:50:46","slug":"kohana-2-3-nginx-htaccess-like-url-rewrite","status":"publish","type":"post","link":"https:\/\/webpiraten.de\/index.php\/frameworks\/kohana-2-3-nginx-htaccess-like-url-rewrite\/","title":{"rendered":"Kohana 2.3 NGINX htaccess like URL rewrite"},"content":{"rendered":"<p>Um Kohana 2.3 auf NGINX mit sauberen URLs zu konfigurieren geht folgende NGINX server config:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nserver {\r\n        server_name example.com www.example.com;\r\n        listen   80;\r\n\r\n        root \/srv\/www\/example.com\/pages\/;\r\n        access_log \/srv\/www\/example.com\/logs\/access.log;\r\n        error_log \/srv\/www\/example.com\/logs\/error.log;\r\n\r\n        index index.php index.html index.htm;\r\n\r\n        try_files $uri $uri\/ @rewrite;\r\n\r\n        location @rewrite {\r\n                rewrite ^\/(.*)$ \/index.php\/$1;\r\n        }\r\n\r\n        location ~ \\.php {\r\n                fastcgi_index index.php;\r\n                fastcgi_pass 127.0.0.1:9000;\r\n\r\n                include fastcgi_params;\r\n                fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\r\n                fastcgi_param PATH_INFO $fastcgi_path_info;\r\n                fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;\r\n                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n                fastcgi_param ENV &quot;production&quot;;\r\n        }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Um Kohana 2.3 auf NGINX mit sauberen URLs zu konfigurieren geht folgende NGINX server config: server { server_name example.com www.example.com; listen 80; root \/srv\/www\/example.com\/pages\/; access_log \/srv\/www\/example.com\/logs\/access.log; error_log \/srv\/www\/example.com\/logs\/error.log; index index.php index.html index.htm; try_files $uri $uri\/ @rewrite; location @rewrite { rewrite ^\/(.*)$ \/index.php\/$1; } location ~ \\.php { fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_split_path_info ^(.+\\.php)(\/.+)$; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,26,75,618,54,76],"tags":[620,621,85,9,619,110,596,315,622],"class_list":["post-856","post","type-post","status-publish","format-standard","hentry","category-frameworks","category-kohana-framework","category-linux","category-nginx","category-server","category-shell","tag-2-3","tag-config","tag-htaccess","tag-kohana","tag-nginx","tag-rewrite","tag-server","tag-url","tag-url-rewrite"],"_links":{"self":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/comments?post=856"}],"version-history":[{"count":2,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/856\/revisions"}],"predecessor-version":[{"id":858,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/856\/revisions\/858"}],"wp:attachment":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/media?parent=856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/categories?post=856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/tags?post=856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}