{"id":14430,"date":"2018-01-17T14:14:33","date_gmt":"2018-01-17T10:44:33","guid":{"rendered":"http:\/\/blog.iranhostdir.ir\/?p=14430"},"modified":"2025-04-29T19:16:09","modified_gmt":"2025-04-29T15:46:09","slug":"%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-asp-net-core-%d8%a8%d9%87-%d9%88%d8%b3%db%8c%d9%84%d9%87-iis-%d8%af%d8%b1-nano-server","status":"publish","type":"post","link":"https:\/\/iranhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-asp-net-core-%d8%a8%d9%87-%d9%88%d8%b3%db%8c%d9%84%d9%87-iis-%d8%af%d8%b1-nano-server\/","title":{"rendered":"\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc ASP.Net Core \u0628\u0647 \u0648\u0633\u06cc\u0644\u0647 IIS \u062f\u0631 Nano Server"},"content":{"rendered":"<p><a href=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/aspnet-core-10-4-638.jpg\"><img decoding=\"async\" class=\" size-full wp-image-14433 aligncenter\" src=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/aspnet-core-10-4-638.jpg\" alt=\"aspnet-core-10-4-638\" width=\"638\" height=\"359\" \/><\/a><\/p>\n<p><strong>\u0646\u0635\u0628 <\/strong><strong>Reverse Forwarder <\/strong><strong>\u00a0:<\/strong><\/p>\n<p>Reverse Forwarders \u0647\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0646\u0644\u0627\u06cc\u0646 (\u0645\u0627\u0634\u06cc\u0646 \u0631\u0648\u0634\u0646 \u0648 \u062f\u0631 \u062d\u0627\u0644 \u06a9\u0627\u0631) \u0648 \u0647\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0641\u0644\u0627\u06cc\u0646 (\u0645\u0627\u0634\u06cc\u0646 \u062e\u0627\u0645\u0648\u0634) \u0642\u0627\u0628\u0644 \u0646\u0635\u0628 \u0645\u06cc \u0628\u0627\u0634\u062f.<\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644\u062a \u0622\u0641\u0644\u0627\u06cc\u0646\u060c Reverse Forwarders \u00a0\u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u2013ReverseForwarders \u0628\u0647 \u0647\u0646\u06af\u0627\u0645 \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 New-NanoServerImage \u0627\u0632 \u0637\u0631\u06cc\u0642 cmdlet \u0642\u0627\u0628\u0644 \u0646\u0635\u0628 \u0645\u06cc \u0628\u0627\u0634\u062f \u0645\u0627\u0646\u0646\u062f :<\/p>\n<p style=\"text-align: left;\">New-NanoServerImage -MediaPath f:\\ -BasePath .\\Base -TargetPath .\\Nano1.vhd -GuestDrivers -Packages Microsoft-NanoServer-IIS-Package \u2013ReverseForwarders<\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644\u062a \u0622\u0646\u0644\u0627\u06cc\u0646\u060c \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u067e\u06a9\u06cc\u062c \u0645\u0631\u0628\u0648\u0637\u0647 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062f\u0633\u062a\u0648\u0631 dism \u0622\u0646 \u0631\u0627 \u0646\u0635\u0628 \u0646\u0645\u0648\u062f.<\/p>\n<p style=\"text-align: left;\">dism \/online \/add-package \/packagepath:c:\\packages\\Microsoft-OneCore-ReverseForwarders-Package.cab<\/p>\n<p style=\"text-align: left;\">dism \/online \/add-package \/packagepath:c:\\packages\\en-us\\Microsoft-OneCore-ReverseForwarders-Package.cab<\/p>\n<p style=\"text-align: left;\">&lt;reboot&gt;<\/p>\n<ul>\n<li>\u062f\u0633\u062a\u0648\u0631 \u0627\u0648\u0644 \u067e\u06a9\u06cc\u062c \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 Reverse Forwarders \u0631\u0627 \u0646\u0635\u0628 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/li>\n<li>\u062f\u0633\u062a\u0648\u0631 \u062f\u0648\u0645 \u0632\u0628\u0627\u0646 \u0647\u0627\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u067e\u06a9\u06cc\u062c \u0631\u0627 \u0646\u0635\u0628 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/li>\n<\/ul>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f\u060c c:\\packages \u0645\u0633\u06cc\u0631 \u0644\u0648\u06a9\u0627\u0644\u06cc \u0645\u06cc \u0628\u0627\u0634\u062f\u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u0633\u06cc\u0631\u06cc \u06a9\u0647 \u067e\u06a9\u06cc\u0686 \u0645\u0631\u0628\u0648\u0637\u0647 \u0631\u0627 \u0627\u0632 \u0646\u0627\u0646\u0648 \u0633\u0631\u0648\u0631 \u06a9\u067e\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0646\u0635\u0628 Reverse Forwarders \u0686\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0646\u0644\u0627\u06cc\u062a \u06cc\u0627 \u0622\u0641\u0644\u0627\u06cc\u0646\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 IIS \u0648 Reverse Forwarders \u00a0\u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0646\u062f<\/p>\n<p style=\"text-align: left;\">dism \/online \/get-packages<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0645\u0627\u0646 \u0634\u0645\u0627 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a Language packs for Microsoft-NanoServer-IIS-Package \u00a0\u0648 Microsoft-OneCore-ReverseForwarders-Package \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f<\/p>\n<p><strong>\u0646\u0635\u0628 <\/strong><strong>HttpPlatformHandler<\/strong><\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0646\u0635\u0628 HttpPlatformHandler\u00a0 \u062f\u0631 \u0646\u0627\u0646\u0648 \u0641\u0642\u0637 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0627\u0645\u06a9\u0627\u0646 \u067e\u0630\u06cc\u0631 \u0645\u06cc \u0628\u0627\u0634\u062f .<\/p>\n<p>\u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u0646\u0627\u0646\u0648 \u0641\u0642\u0637 \u062f\u0631 \u0648\u0631\u0698\u0646 \u06f6\u06f4 \u0628\u06cc\u062a \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u0628\u0646\u0627\u0628\u0631\u06cc\u0646 \u0634\u0645\u0627 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u0622\u062e\u0631\u06cc\u0646 \u0648\u0631\u0698\u0646 \u06f6\u06f4 \u0628\u06cc\u062a HttpPlatformHandler\u00a0 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0645\u0627\u0634\u06cc\u0646 \u0639\u0627\u062f\u06cc( \u063a\u06cc\u0631 Nano ) \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0644\u06cc\u0646\u06a9 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0627\u0646\u0644\u0648\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<p><a href=\"http:\/\/www.iis.net\/downloads\/microsoft\/httpplatformhandler\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/www.iis.net\/downloads\/microsoft\/httpplatformhandler<\/a><\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0648\u0631\u0698\u0646 x64 \u0627\u0632 HttpPlatformHandler\u00a0 \u0628\u0631 \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646 \u0639\u0627\u062f\u06cc ( \u063a\u06cc\u0631 Nano ) \u0634\u0645\u0627 \u0646\u0635\u0628 \u0634\u062f\u060c \u06f2 \u0641\u0627\u06cc\u0644 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u062f\u0631 \u0645\u0627\u0634\u06cc\u0646 \u0646\u0627\u0646\u0648 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u0645 :<\/p>\n<ul>\n<li>%windir%\\System32\\inetsrv\\httpPlatformHandler.dll<\/li>\n<li>%windir%\\System32\\inetsrv\\config\\schema\\httpplatform_schema.xml<\/li>\n<\/ul>\n<p>\u062f\u0631 \u0645\u0627\u0634\u06cc\u0646 \u0646\u0627\u0646\u0648 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0622\u0646 \u062f\u0648 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u062f\u0631 \u0645\u06a9\u0627\u0646 \u0645\u0631\u062a\u0628\u0637 \u0628\u0647 \u062e\u0648\u062f\u0634\u0627\u0646 \u06a9\u067e\u06cc \u0646\u0645\u0627\u0626\u06cc\u062f.( dll-&gt;inetsrv, schema file-&gt;inetsrv\\config\\schema )<\/p>\n<ul>\n<li>copy .\\httpPlatformHandler.dll c:\\Windows\\System32\\inetsrv<\/li>\n<li>copy .\\httpplatform_schema.xml c:\\Windows\\System32\\inetsrv\\config\\schema<\/li>\n<\/ul>\n<p><strong>\u0641\u0639\u0627\u0644 \u0646\u0645\u0648\u062f\u0646 <\/strong><strong>HttpPlatformHandler<\/strong><strong> ( <\/strong><strong>PowerShell<\/strong><strong> )<\/strong><\/p>\n<p>\u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u0631\u062a\u0628\u0627\u0637 \u0631\u06cc\u0645\u0648\u062a PowerShell \u0628\u0647 \u0645\u0627\u0634\u06cc\u0646 \u0646\u0627\u0646\u0648 \u0633\u0631\u0648\u0631 \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u0626\u06cc\u062f.<\/p>\n<p>\u062a\u0648\u062c\u0647 \u0646\u0645\u0627\u0626\u06cc\u062f \u06a9\u0647 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u0647\u06cc\u062f \u0639\u0645\u0644 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f\u060c \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0631\u0627 \u0686\u0646\u062f\u06cc\u0646 \u0628\u0627\u0631 \u062a\u06a9\u0631\u0627\u0631 \u0646\u0645\u0627\u0626\u06cc\u062f \u0628\u0627\u0639\u062b \u0627\u06cc\u062c\u0627\u062f \u0686\u0646\u062f\u06cc\u0646 \u0648\u0631\u0648\u062f\u06cc \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u0648 \u0628\u0647 \u0645\u0634\u06a9\u0644 \u0628\u0631\u062e\u0648\u0631\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u062f\u0631 \u0686\u0646\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a\u06cc \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0627\u06cc\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0628\u06a9 \u0622\u067e applicationhost.config \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u0626\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0645\u0633\u06cc\u0631 %systemdrive%\\inetpub\\history \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f.<\/p>\n<p style=\"text-align: left;\">Import-Module IISAdministration<\/p>\n<p style=\"text-align: left;\">$sm = Get-IISServerManager<\/p>\n<p style=\"text-align: left;\"># Add AppSettings section (for Asp.Net Core)<\/p>\n<p style=\"text-align: left;\">$sm.GetApplicationHostConfiguration().RootSectionGroup.Sections.Add(&#8220;appSettings&#8221;)<\/p>\n<p style=\"text-align: left;\"># Unlock handlers section<\/p>\n<p style=\"text-align: left;\">$appHostconfig = $sm.GetApplicationHostConfiguration()<\/p>\n<p style=\"text-align: left;\">$section = $appHostconfig.GetSection(&#8220;system.webServer\/handlers&#8221;)<\/p>\n<p style=\"text-align: left;\">$section.OverrideMode=&#8221;Allow&#8221;<\/p>\n<p style=\"text-align: left;\"># Add httpPlatform section to system.webServer<\/p>\n<p style=\"text-align: left;\">$sectionHttpPlatform = $appHostConfig.RootSectionGroup.SectionGroups[&#8220;system.webServer&#8221;].Sections.Add(&#8220;httpPlatform&#8221;)<\/p>\n<p style=\"text-align: left;\">$sectionHttpPlatform.OverrideModeDefault = &#8220;Allow&#8221;<\/p>\n<p style=\"text-align: left;\"># Add to globalModules<\/p>\n<p style=\"text-align: left;\">$globalModules = Get-IISConfigSection &#8220;system.webServer\/globalModules&#8221; | Get-IISConfigCollection<\/p>\n<p style=\"text-align: left;\">New-IISConfigCollectionElement $globalModules -ConfigAttribute @{&#8220;name&#8221;=&#8221;httpPlatformHandler&#8221;;&#8221;image&#8221;=&#8221;%SystemRoot%\\system32\\inetsrv\\httpPlatformHandler.dll&#8221;}<\/p>\n<p style=\"text-align: left;\"># Add to modules<\/p>\n<p style=\"text-align: left;\">$modules = Get-IISConfigSection &#8220;system.webServer\/modules&#8221; | Get-IISConfigCollection<\/p>\n<p style=\"text-align: left;\">New-IISConfigCollectionElement $modules -ConfigAttribute @{&#8220;name&#8221;=&#8221;httpPlatformHandler&#8221;}<\/p>\n<p style=\"text-align: left;\">$sm.CommitChanges()<\/p>\n<p><strong>\u0641\u0639\u0627\u0644 \u0646\u0645\u0648\u062f\u0646 <\/strong><strong>HttpPlatformHandler <\/strong><strong>\u00a0( \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0648 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0648\u06cc\u0631\u0627\u06cc\u0634 <\/strong><strong>applicationhost.config <\/strong><strong>\u00a0)<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0645\u0631\u0627\u062d\u0644 \u0628\u0627\u0644\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u0646\u0645\u0648\u062f\u0646 HttpPlatformHandler \u062f\u0646\u0628\u0627\u0644 \u0646\u0645\u0648\u062f\u0647 \u0627\u06cc\u062f \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0646\u0645\u06cc \u0628\u0627\u0634\u062f.<\/p>\n<p>\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0645\u0631\u062d\u0644\u0647 PowerShell \u00a0\u0631\u0627 \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u0646\u0645\u0648\u062f\u0646 \u062f\u0646\u0628\u0627\u0644 \u0646\u0645\u0627\u0626\u06cc\u062f \u0627\u0645\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u0647 \u0647\u0631 \u062f\u0644\u06cc\u0644 \u0628\u0627\u06cc\u062f applicationhost.config \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0646\u0645\u0627\u0626\u06cc\u062f \u0637\u0628\u0642 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f :<\/p>\n<p>\u0645\u0633\u06cc\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627\u0632 \u0646\u0645\u0627\u0626\u06cc\u062f :<\/p>\n<p style=\"text-align: left;\">c:\\windows\\system32\\inetsrv\\applicationHost.config<\/p>\n<p>\u0632\u06cc\u0631 \u062a\u06af &lt;configSections&gt; \u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f :<\/p>\n<p style=\"text-align: left;\">&lt;configSections&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;section name=&#8221;appSettings&#8221; \/&gt;<\/p>\n<p style=\"text-align: right;\">\u062f\u0631 \u0642\u0633\u0645\u062a system.webServer \u0645\u0642\u062f\u0627\u0631 handlers \u0631\u0627 \u0627\u0632 Deny \u00a0\u0628\u0647 Allow \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">&lt;section name=&#8221;handlers&#8221; overrideModeDefault=&#8221;Allow&#8221; \/&gt;<\/p>\n<p style=\"text-align: right;\">\u062f\u0631 \u0642\u0633\u0645\u062a system.webServer \u0628\u062e\u0634 \u062c\u062f\u06cc\u062f\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc httpPlatform\u00a0 \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u0626\u06cc\u062f :<\/p>\n<p style=\"text-align: left;\">&lt;section name=&#8221;httpPlatform&#8221; overrideModeDefault=&#8221;Allow&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">&lt;\/sectionGroup&gt;<\/p>\n<p style=\"text-align: right;\">\u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc globalModules \u00a0\u0627\u0636\u0627\u0641\u0647 \u0646\u0645\u0627\u0626\u06cc\u062f :<\/p>\n<p style=\"text-align: left;\">&lt;add name=&#8221;httpPlatformHandler&#8221; image=&#8221;%SystemRoot%\\system32\\inetsrv\\httpPlatformHandler.dll&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">&lt;\/globalModules&gt;<\/p>\n<p style=\"text-align: right;\">\u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc modules \u0627\u0636\u0627\u0641\u0647 \u0646\u0645\u0627\u06cc\u0626\u062f :<\/p>\n<p style=\"text-align: left;\">&lt;add name=&#8221;httpPlatformHandler&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">&lt;\/modules&gt;<\/p>\n<p><strong>\u0646\u0635\u0628 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 <\/strong><strong>Asp.Net Core<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u0628\u062a\u062f\u0627\u060c \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0646\u0645\u0627\u0626\u06cc\u062f \u06a9\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646Asp.Net Core \u00a0\u0648\u0631\u0698\u0646 coreclr \u0648 x64 \u0628\u0627\u0634\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062c\u0647\u062a \u0628\u0633\u06cc\u0627\u0631 \u0645\u0647\u0645 \u0645\u06cc \u0628\u0627\u0634\u062f \u06a9\u0647 \u062f\u06cc\u06af\u0631 \u062a\u0631\u06a9\u06cc\u0628\u0627\u062a \u0628\u0631 \u0631\u0648\u06cc \u0646\u0627\u0646\u0648 \u0639\u0645\u0644 \u0646\u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f coreclr\/x64 \u0628\u0627\u06cc\u062f \u062a\u0645\u0627\u0645 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0627 \u0628\u0647 \u0645\u0627\u0634\u06cc\u0646 \u0646\u0627\u0646\u0648 \u06a9\u067e\u06cc \u0646\u0645\u0627\u0626\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0627\u0632 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc c:\\HelloAspNetCore \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f \u0648\u0628 \u0633\u0627\u06cc\u062a\u06cc \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0622\u062f\u0631\u0633c:\\HelloAspNetCore\\wwwroot \u00a0\u067e\u0648\u06cc\u0646\u062a \u0645\u06cc \u0646\u0645\u0627\u0626\u06cc\u0645\u060c \u067e\u0648\u0631\u062a \u06f8\u06f0\u06f0\u06f0 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 ( \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u06af\u06cc \u06a9\u0627\u0631 \u0628\u0627 Default App Pool \u00a0\u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u0645 )<\/p>\n<p>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0646 \u0627\u0632 \u067e\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06f8\u06f0 \u0647\u0645 \u0645\u0634\u06a9\u0644\u06cc \u0628\u0631\u0627\u06cc \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc Asp.Net Core \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u06cc \u06a9\u0646\u062f. \u0627\u0645\u0627 \u0628\u0627 \u0627\u06cc\u0646 \u0648\u062c\u0648\u062f \u062f\u0631 \u0645\u062d\u06cc\u0637 \u062a\u0633\u062a \u0645\u0627 \u062a\u0631\u062c\u06cc\u062d \u062f\u0627\u062f\u06cc\u0645 \u06a9\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 Asp.Net Core \u00a0\u0631\u0627 \u0627\u0632 Default Website \u00a0\u062c\u062f\u0627 \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0642\u0648\u0639 \u0645\u0634\u06a9\u0644 \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc \u0622\u0646 \u0633\u0631\u06cc\u0639\u062a\u0631 \u0635\u0648\u0631\u062a \u06af\u06cc\u0631\u062f.( \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 default IIS site \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f )<\/p>\n<p style=\"text-align: right;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PowerShell :<\/p>\n<p style=\"text-align: left;\">Import-module IISAdministration<\/p>\n<p style=\"text-align: left;\">New-IISSite -Name &#8220;AspNetCoreSite&#8221; -PhysicalPath c:\\HelloAspNetcore\\wwwroot -BindingInformation &#8220;*:8000:&#8221;<\/p>\n<p style=\"text-align: right;\">\u0627\u06cc\u062c\u0627\u062f \u0633\u0627\u06cc\u062a \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc ( \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u0632 \u0631\u0648\u0634 \u0628\u0627\u0644\u0627 \u0627\u0632 PowerShell \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f ) \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u0627\u06cc\u0644 c:\\windows\\system32\\inetsrv\\applicationHost.config :<\/p>\n<p style=\"text-align: left;\">&lt;sites&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;site name=&#8221;Default Web Site&#8221; id=&#8221;1&#8243;&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;application path=&#8221;\/&#8221;&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;virtualDirectory path=&#8221;\/&#8221; physicalPath=&#8221;%SystemDrive%\\inetpub\\wwwroot&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/application&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;bindings&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;binding protocol=&#8221;http&#8221; bindingInformation=&#8221;*:80:&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/bindings&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/site&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;site name=&#8221;AspNetCoreSite&#8221; id=&#8221;2&#8243;&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;application path=&#8221;\/&#8221;&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;virtualDirectory path=&#8221;\/&#8221; physicalPath=&#8221;C:\\HelloAspNetCore\\wwwroot&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/application&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;bindings&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;binding protocol=&#8221;http&#8221; bindingInformation=&#8221;*:8000:&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/bindings&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/site&gt;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2026 rest of xml\u2026<\/p>\n<p style=\"text-align: left;\">&lt;\/sites&gt;<\/p>\n<p>\u0642\u062f\u0645 \u0628\u0639\u062f\u06cc \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u067e\u0648\u0631\u062a \u06f8\u06f0\u06f0\u06f0 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u0645:<\/p>\n<p style=\"text-align: left;\">New-NetFirewallRule -Name &#8220;AspNetCore&#8221; -DisplayName &#8220;HTTP on TCP\/8000&#8221; -Protocol tcp -LocalPort 8000 -Action Allow -Enabled True<\/p>\n<p><strong>\u0631\u0641\u0639 \u0639\u06cc\u0628 <\/strong><\/p>\n<p>\u0627\u0628\u062a\u062f\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0646\u0645\u0627\u0626\u06cc\u062f \u06a9\u0647 \u062e\u0648\u062f IIS \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a. http:\/\/&lt;ipaddress&gt; \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u0635\u0641\u062d\u0647 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0631\u0627 \u0628\u0627\u0632 \u0646\u0645\u0627\u06cc\u062f ( \u0635\u0641\u062d\u0647 \u0622\u0628\u06cc IIS ) \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u06cc\u06a9 \u06cc\u0627 \u0686\u0646\u062f \u0645\u0648\u0631\u062f \u0627\u0628\u062a\u062f\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0646\u0641\u06cc\u06af \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f.<\/p>\n<p>\u062b\u0627\u0646\u06cc\u0627 \u0686\u06a9 \u0646\u0645\u0627\u0626\u06cc\u062f \u06a9\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u0635\u0648\u0631\u062a Standalone \u0627\u062c\u0631\u0627 \u06af\u0631\u062f\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 : c:\\HelloAspNetCore\\approot\\web.cmd<\/p>\n<p>\u0633\u0648\u0645\u0627 \u0686\u06a9 \u0646\u0645\u0627\u0626\u06cc\u062f \u06a9\u0647 \u0644\u0627\u06af \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0648\u0633\u0637 HttpPlatformHandler\u00a0 \u062f\u0631 \u062d\u0627\u0644 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0646 \u0645\u06cc \u0628\u0627\u0634\u062f \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f: c:\\HelloAspNetCore\\logs<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u0635\u0628 Reverse Forwarder \u00a0: Reverse Forwarders \u0647\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0646\u0644\u0627\u06cc\u0646 (\u0645\u0627\u0634\u06cc\u0646 \u0631\u0648\u0634\u0646 \u0648 \u062f\u0631 \u062d\u0627\u0644 \u06a9\u0627\u0631) \u0648 \u0647\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0641\u0644\u0627\u06cc\u0646 (\u0645\u0627\u0634\u06cc\u0646 \u062e\u0627\u0645\u0648\u0634) \u0642\u0627\u0628\u0644 \u0646\u0635\u0628 \u0645\u06cc \u0628\u0627\u0634\u062f. \u062f\u0631 \u062d\u0627\u0644\u062a \u0622\u0641\u0644\u0627\u06cc\u0646\u060c Reverse Forwarders \u00a0\u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u2013ReverseForwarders \u0628\u0647 \u0647\u0646\u06af\u0627\u0645 \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 New-NanoServerImage \u0627\u0632 \u0637\u0631\u06cc\u0642 cmdlet \u0642\u0627\u0628\u0644 \u0646\u0635\u0628 \u0645\u06cc \u0628\u0627\u0634\u062f \u0645\u0627\u0646\u0646\u062f : New-NanoServerImage -MediaPath f:\\ -BasePath &hellip;<\/p>\n","protected":false},"author":64,"featured_media":15965,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[],"class_list":["post-14430","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webhosting"],"_links":{"self":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/14430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/users\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/comments?post=14430"}],"version-history":[{"count":0,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/14430\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media\/15965"}],"wp:attachment":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media?parent=14430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/categories?post=14430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/tags?post=14430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}