{"id":164,"date":"2020-03-10T17:18:49","date_gmt":"2020-03-10T08:18:49","guid":{"rendered":"http:\/\/sumomo.ohwaki.jp\/wordpress\/?p=164"},"modified":"2020-03-10T17:18:49","modified_gmt":"2020-03-10T08:18:49","slug":"blazor-serverside-apache-httpd%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=164","title":{"rendered":"blazor serverside apache httpd\u30e1\u30e2"},"content":{"rendered":"\n<p>\u307e\u3041\u3001\u5f53\u305f\u308a\u524d\u306e\u8a71\u3060\u304c\u3001apache\u4e0a\u3067\u30b5\u30fc\u30d0\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u3001blazor server side\u3092\u52d5\u4f5c\u3055\u305b\u308b\u306b\u306f\u3001\u305d\u308c\u7528\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u8a2d\u5b9a\u304c\u5fc5\u8981\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001WebSocket\u306e\u305f\u3081\u306e\u30ea\u30e9\u30a4\u30c8\u30eb\u30fc\u30eb\u304c\u5fc5\u8981\u3068\u306a\u308b\u3002<br>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n\n\n\n<p>http:\/\/\u30fb\u30fb\u30fb\/blazorapp\u3092http:\/\/localhost:5010\/ \u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n        DocumentRoot \/var\/www\/html\n        ServerName \u30fb\u30fb\u30fb\n    <span style=\"font-weight:bold;color:red\">\n    ProxyPass \/blazorapp http:\/\/localhost:5010\/\n    ProxyPassReverse \/blazorapp http:\/\/localhost:5010\/\n    RewriteEngine on\n    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]\n    RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]\n    RewriteRule \/blazorapp\/(.*) ws:\/\/localhost:5010\/$1 [P]<\/span>\n&lt;\/VirtualHost&gt;\n<\/code><\/pre>\n\n\n\n<p>\u203bkestrel\u30b5\u30fc\u30d3\u30b9\u306flocalhost:5010\u3067\u53e3\u3092\u958b\u3051\u3066\u5f85\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u60f3\u5b9a\u3002(appsettings.json\u306b\u3066\u6307\u5b9a\u3059\u308b\u3068\u304b\u30cd\u3002)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[[Service\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb]]\n\n[Unit]\nDescription=&lt;\u30b5\u30fc\u30d3\u30b9\u306e\u8aac\u660e>\n[Service]\nWorkingDirectory=\/&lt;working directory path>\nExecStart=\/usr\/bin\/dotnet \/&lt;dll\u30d1\u30b9>\/&lt;\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d>.dll\nRestart=always\nRestartSec=10\nKillSignal=SIGINT\nSyslogIdentifier=&lt;\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d>\nUser=apache\nEnvironment=ASPNETCORE_ENVIRONMENT=Production\n[Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>[[appsettings.json]]\n\n{\n  \"Kestrel\" : {\n        \"EndPoints\" : {\n                \"Http\" : {\n                        \"Url\" : \"http:\/\/localhost:5010\"\n                 }\n         }\n  },\n     \u30fb\u30fb\u30fb\n}<\/code><\/pre>\n\n\n\n<p>\u4e00\u5fdc\u3001\u52d5\u4f5c\u78ba\u8a8d\u6e08\u307f\u3002\u3067\u3082\u3001Websocket\u306e\u7b87\u6240\u306f\u5c11\u3005\u3001\u81ea\u4fe1\u7121\u3057\u30fb\u30fb\u30fb<br>\u5f8c\u3067\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3088\u3046\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u3041\u3001\u5f53\u305f\u308a\u524d\u306e\u8a71\u3060\u304c\u3001apache\u4e0a\u3067\u30b5\u30fc\u30d0\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u3001blaz &hellip; <a href=\"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=164\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,10,11,4],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-asp-net-core","category-blazor","category-dotnetcore","category-4"],"_links":{"self":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=164"}],"version-history":[{"count":4,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/164\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}