Month: July 2017

  • Windows Server远程桌面里如何修改密码

    如果你楼主一样经常需要远程登陆到windows server去给一些Service账号改密码,一定会发现在远程桌面里,Ctrl-Alt-Del无法调出改密码的窗口,因为这个指定总是被当前的Windows环境捕获了,远程的机器收不到这个命令。其实正确的在Windows Server远程桌面里改密码的姿势是Ctrl-Del-End,具体步骤如下 远程桌面登陆 同时按Ctrl-Del-End 输入当前密码和新密码提交

  • 配置Azure WebApp只能通过https访问

    这篇博文记录如何配置Azrue WebApp只允许https访问,非https的请求一律重定向到https。 具体步骤是在web.config里加一个urlrewrite信息,如下所示,需要加在rewrite/rules节点下 <rule name=”Force HTTPS” enabled=”true”>   <match url=”(.*)” ignoreCase=”false” />   <conditions>     <add input=”{HTTPS}” pattern=”off” />     <add input=”{WARMUP_REQUEST}” pattern=”1″ negate=”true” />   </conditions>   <action type=”Redirect” url=”https://{HTTP_HOST}/{R:1}” appendQueryString=”true” redirectType=”Permanent” /> </rule>

  • Azure WebApp使用反向代理

    Azure WebApp有个很赞的功能,就是默认的二级域名自带https证书。这里记录一下用Azure WebApp来反代其他应用的步骤,同时也感谢Herb童鞋提供的技术支持 在wwwroot的上层目录添加一个名为applicationHost.xdt的文件,内容如下 <?xml version=”1.0″?> <configuration xmlns:xdt=”http://schemas.microsoft.com/XML-Document-Transform”> <system.webServer> <proxy xdt:Transform=”InsertIfMissing” enabled=”true” preserveHostHeader=”false” reverseRewriteHostInResponseHeaders=”false” /> <rewrite> <allowedServerVariables> <add name=”HTTP_X_ORIGINAL_HOST” xdt:Transform=”Insert” /> <add name=”HTTP_X_UNPROXIED_URL” xdt:Transform=”Insert” /> <add name=”HTTP_X_ORIGINAL_ACCEPT_ENCODING” xdt:Transform=”Insert” /> <add name=”HTTP_ACCEPT_ENCODING” xdt:Transform=”Insert” /> </allowedServerVariables> </rewrite> </system.webServer> </configuration> 更新web.config文件,增加urlwrite规则 <rule name=”Search” stopProcessing=”true”> <match url=”^Indexes?(.*)” /> <action type=”Rewrite” url=”http://10.1.0.254/indexes/{R:1}” /> <serverVariables> <set name=”HTTP_X_UNPROXIED_URL” value=”http://10.1.0.254/indexes/{R:1}“ /> <set name=”HTTP_X_ORIGINAL_ACCEPT_ENCODING”…