{"id":168,"date":"2018-02-12T16:30:00","date_gmt":"2018-02-12T15:30:00","guid":{"rendered":"http:\/\/www.ncodenicer.com\/?p=168"},"modified":"2026-05-12T21:19:20","modified_gmt":"2026-05-12T19:19:20","slug":"running-mono-with-nginx","status":"publish","type":"post","link":"https:\/\/www.codenicer.com\/?p=168","title":{"rendered":"Running Mono with NGINX"},"content":{"rendered":"\n<p>Important thing (if using regular expressions in server names configuration in NGINX) is to make sure to pass <code>$host<\/code> as SERVER_NAME in fastcgi_params &#8211; like:<code><br>fastcgi_param SERVER_NAME $host;<br><\/code><\/p>\n\n\n\n<p>Default value of $server_name will pass regexp and that will cause Mono to crash while parsing request URI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important thing (if using regular expressions in server names configuration in NGINX) is to make sure to pass $host as SERVER_NAME in fastcgi_params &#8211; like:fastcgi_param SERVER_NAME $host; Default value of $server_name will pass regexp and that will cause Mono to crash while parsing request URI.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,71],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mono","tag-nginx"],"_links":{"self":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":1,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}