{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"nginx configuration for semanticscuttle","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/216 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"216\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\">\/**\n * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n * (http:\/\/qbnz.com\/highlighter\/ and http:\/\/geshi.org\/)\n *\/\n.ini .de1, .ini .de2 {font: normal normal 1em\/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}\n.ini  {font-family:monospace;}\n.ini .imp {font-weight: bold; color: red;}\n.ini li, .ini .li1 {color: #DDD;}\n.ini .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}\n.ini .co0 {color: #666666; font-style: italic;}\n.ini .sy0 {color: #000066; font-weight:bold;}\n.ini .st0 {color: #933;}\n.ini .re0 {color: #000066; font-weight:bold;}\n.ini .re1 {color: #000099;}\n.ini .re2 {color: #660066;}\n.ini span.xtra { display:block; }\n<\/style><div class=\"code\"><table class=\"ini\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\">server <span class=\"br0\">&#123;<\/span>\n&#160; &#160; &#160; &#160; listen <span class=\"nu0\">80<\/span> default_server<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; root \/var\/www\/sc\/www<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; index index.php<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; server_name _<span class=\"co0\">;<\/span>\n&#160;\n&#160; &#160; &#160; &#160; location ~ \\.php<span class=\"br0\">&#40;<\/span>\/.*<span class=\"br0\">&#41;<\/span>?$ <span class=\"br0\">&#123;<\/span>\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; # regex to split $uri to $fastcgi_script_name and $fastcgi_path\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fastcgi_split_path_info ^<span class=\"br0\">&#40;<\/span>.+\\.php<span class=\"br0\">&#41;<\/span><span class=\"br0\">&#40;<\/span>\/.+<span class=\"br0\">&#41;<\/span>$<span class=\"co0\">;<\/span>\n&#160;\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; # Check that the PHP script exists before passing it\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; try_files $fastcgi_script_name <span class=\"sy0\">=<\/span><span class=\"re2\">404<\/span><span class=\"co0\">;<\/span>\n&#160;\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; # Bypass the fact that try_files resets $fastcgi_path_info\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; # see: http:\/\/trac.nginx.org\/nginx\/ticket\/<span class=\"nu0\">321<\/span>\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; set $path_info $fastcgi_path_info<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fastcgi_param PATH_INFO $path_info<span class=\"co0\">;<\/span>\n&#160;\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fastcgi_index index.php<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; include fastcgi.conf<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; #include snippets\/fastcgi-php.conf<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; # With php5-fpm:\n&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fastcgi_pass unix:\/var\/run\/php5-fpm.sock<span class=\"co0\">;<\/span>\n&#160; &#160; &#160; &#160; <span class=\"br0\">&#125;<\/span>\n<span class=\"br0\">&#125;<\/span>\n&#160;<\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/216\/rev-raw\/5fe1ac6eb68f77c2ee9cb6295f23740ef10a14a2\/nginx-semanticscuttle.conf\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/216#nginx-semanticscuttle.conf\">nginx-semanticscuttle.conf<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
