Visual Studioã§ãããã°å®è¡ããã¨ãããã©ã«ãã§ã¯ http://localhost:63543/ ã¿ãããªã¢ãã¬ã¹ã§ã¢ã¯ã»ã¹ãããã¨ã«ãªãã¾ãããã
ããããOAuthã®ã³ã¼ã«ããã¯å ã¨ãã¦ãlocalhost ãæå®ã§ããªãå ´åãªã©ãlocalhost 以å¤ã®ãã¹ãåã§ã¢ã¯ã»ã¹ãããå ´åãããã¨æãã¾ãã
ãhosts ãã¡ã¤ã«çã§åå解決ã§ããããã«ãã¦ã¢ã¯ã»ã¹ããã°è¯ãã ãã§ãããã¨æã£ãã®ã§ãããããã§ããªãã£ãã®ã§ããã°ã«æ¸ãã¦ããã¾ããã¡ãªã¿ã«ã127.0.0.1ã§ã¢ã¯ã»ã¹ããå ´åã«ããã®å¦ç½®ãå¿ è¦ã§ãã
hosts ãã¡ã¤ã«ã®ç·¨é
C:\Windows\System32\drivers\etc é ä¸ã«ãã hosts ãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ããããã¹ãåãç»é²ãã¾ãã
127.0.0.1 mydomain.com
IIS Express ã® applicationhost.config ãç·¨é
C:\Users[ã¦ã¼ã¶å]\Documents\IISExpress\config é ä¸ã«æ ¼ç´ããã¦ãã IIS Express ã®æ§æãã¡ã¤ã«ï¼applicationhost.configï¼ãç·¨éãã¾ãã
以ä¸ã®ããã«<binding protocol="http" bindingInformation="*:63543:mydomain.com" />
ã追è¨ãã¾ãã
<site name="WebApplication1" id="67"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="c:\users\nakaji\documents\visual studio 2013\Projects\WebApplication1\WebApplication1" /> </application> <bindings> <binding protocol="http" bindingInformation="*:63543:localhost" /> <binding protocol="http" bindingInformation="*:63543:mydomain.com" /> </bindings> </site>
URLã®äºç´
ãã®ã³ãã³ããå®è¡ããªãã¨ã管çè 権éã§èµ·åãã Visual Studio 以å¤ã§ IIS Express ãèµ·åã§ããªããªãã¾ãã
管çè ã§èµ·åããã³ãã³ãããã³ãããã以ä¸ã®ãããªã³ãã³ããå®è¡ãã¾ãã
> netsh http add urlacl url=http://mydomain.com:63543/ user=Everyone URL äºç´ãæ£å¸¸ã«è¿½å ãã¾ãã
ããã¸ã§ã¯ãã®URLå¤æ´
ããã¸ã§ã¯ãã®ããããã£ã§ãããã¸ã§ã¯ãã®URLãå¤æ´ãã¦ããã¾ãããã
ããã¹ããã¨ã¯ä»¥ä¸
以ä¸ã§è¨å®ã¯å®äºã§ããVisual Studioããå®è¡ãã¦æå³ãããã¹ãåã§ã¢ã¯ã»ã¹ã§ãã¦ãããã¨ã確èªãã¾ãããã
ãªãã¦ãããããªãã¨æ¸ãããã©
No1ãã(@kamebuchi)ã¨ãã°ããï¼@shibayanï¼ã«æãã¦ããã£ããã¨ã§ããã
ãã¹ã¿ã¼No.1ãã
@nakaji ã¨ã©ã¼ã«ãªãã®IEã ãï¼
— ãããã.ãã³ (@kosmosebi) September 17, 2014
@nakaji http://t.co/GNPdgXVRvN ãã®ã¸ãããª
— ãããã.ãã³ (@kosmosebi) September 17, 2014
IISExpressã¯ãã¤ã³ãããã®ä»¥å¤åãä»ãã¦ãããªãã®ã§Localhostããªãã«ä½¿ããèªåã§ãµã¤ãå¢ããã°ããã¨æãã¾ããï¼ApplicationHost.configã§ï¼
— ãããã.ãã³ (@kosmosebi) September 17, 2014
http://t.co/w0aIFL5UUA ãã®ããã
— ãããã.ãã³ (@kosmosebi) September 17, 2014
@nakaji localhostã§ããããã§
— ãããã.ãã³ (@kosmosebi) September 17, 2014
OAuthã®ãã¹ãã¨ã127.0.0.1ã§ãªãã¨ãã¡ã¨ãã«ã¹ã¿ã ãã¡ã¤ã³ã§ã®ãã¹ãã¨ãã®ã¨ãã«applicationhost.configããã
— ãããã.ãã³ (@kosmosebi) September 17, 2014
@nakaji ãããï½
— ãããã.ãã³ (@kosmosebi) September 17, 2014
ãã°ãã
以åããã°ã«æ¸ããã¦ãã®ã«æ°ãã¤ããã
ã¿ãªããããã¤ããããã¨ããããã¾ã
ãã¤ãããããæãã¦ããã¦ãããã¨ããããã¾ãããããã§æ¯æ¥æ¥½ããçãã¦ã¾ãã
追è¨ï¼2015/7/17ï¼
Visual Studio 2015 ãããã©ããã¯ãããã¾ããããããã¸ã§ã¯ãã®è¨å®ã§ããã¹ã¦ã®ã¦ã¼ã¶ã¼ã«ãµã¼ãã¼è¨å®ãé©ç¨ï¼ããã¸ã§ã¯ã ãã¡ã¤ã«ã«æ ¼ç´ï¼ãã«ãã§ãã¯ãå ¥ã£ã¦ããå ´åã¯ãã½ãªã¥ã¼ã·ã§ã³ãä¿åãã¦ããã©ã«ãã«ãã .vs ï¼é ããã©ã«ãï¼ã« applicationhost.config ãæ ¼ç´ããããããã§ãã