简体   繁体   English

保护在Azure中运行的测试/测试版站点

[英]Protect test/beta site running in azure

We're developing a new website running in azure. 我们正在开发一个天蓝色运行的新网站。 We are currently developing against the local azure dev environment. 我们目前正在针对当地的Azure开发环境进行开发。 But now we need to publish and test the site in the real Azure world. 但是现在我们需要在真实的Azure世界中发布和测试该网站。 But we would like to run in a "closed" environment, where only know users have access, as the site should not go live yet. 但是我们希望在“封闭”环境中运行,在该环境中仅知道用户具有访问权限,因为该站点尚不可用。 Any suggestions to accomplish this? 有什么建议可以做到这一点?

/Rasmus /拉斯莫斯

Windows Azure has something called 'staging mode', see this post: http://sevans.info/2010/10/10/windows-azure-staging-model/ Windows Azure具有一种称为“登台模式”的东西,请参阅此帖子: http : //sevans.info/2010/10/10/windows-azure-staging-model/

It's very powerful, and exactly what you need as far as I can see. 它非常强大,据我所知正是您所需要的。

You could remove the endpoints of your instance configuration, so there will be no forwarding through the load balancer. 您可以删除实例配置的端点,因此不会通过负载平衡器进行转发。 After that you could use the Remote Desktop to log into your azure instance and test your web application. 之后,您可以使用远程桌面登录到Azure实例并测试Web应用程序。

Above suggestions are great and I would also like to add two more in this list as well: 上面的建议很棒,我也想在此列表中再添加两个:

  1. Using production deployment and having a dummy index/default page with directory browsing disabled (already set as default) So when someone come you your site there is nothing they will see. 使用生产部署并具有禁用目录浏览的虚拟索引/默认页面(已设置为默认值),因此当有人访问您的网站时,他们将看不到任何内容。 And as there is no directory browsing so they can not guess the page*.aspx to visit your site. 并且由于没有目录浏览,所以他们无法猜测page * .aspx来访问您的站点。 This will keep your production site running and you can test it from outside. 这将使您的生产站点保持运行状态,并且您可以从外部对其进行测试。

  2. Removing your instance form Load Balancer while keeping your instance healthy. 在保持实例健康的同时从负载均衡器中删除实例。 This will require you to test the Azure Application by RDP to your instance and then launch internally. 这将需要您通过RDP对实例测试Azure应用程序,然后在内部启动。 If you wish to do so here is the Powershell based trick. 如果您希望这样做,这是基于Powershell的技巧。

You could restrict the IP addresses that are allowed to access your app if you have a static IP address. 如果您具有静态IP地址,则可以限制允许访问您的应用程序的IP地址。 As per this link: https://azure.microsoft.com/en-us/blog/ip-and-domain-restrictions-for-windows-azure-web-sites/ 按照此链接: https : //azure.microsoft.com/en-us/blog/ip-and-domain-restrictions-for-windows-azure-web-sites/

Developers can use IP and Domain Restrictions to control the set of IP addresses, and address ranges, that are either allowed or denied access to their websites. 开发人员可以使用IP和域限制来控制允许或拒绝访问其网站的IP地址和地址范围的集合。 With Windows Azure Web Sites developers can enable/disable the feature, as well as customize its behavior, using web.config files located in their website. 使用Windows Azure网站,开发人员可以使用其网站上的web.config文件启用/禁用该功能以及自定义其行为。

Here's the code: 这是代码:

<system.webServer>
  <security>
    <ipSecurity allowUnlisted="false" denyAction="NotFound">
      <add allowed="true" ipAddress="123.456.0.0" subnetMask="255.255.0.0"/>
    </ipSecurity>
  </security>
</system.webServer>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Azure中使用密码保护Beta版网站 - Password protect beta website in Azure 如何在Azure中密码保护静态站点 - How To Password Protect a Static Site in Azure Azure重定向到Azure测试站点 - Azure redirects to azure test site 授权用户访问 Secure Azure 测试站点 - Authorize a user to access Secure Azure Test Site 对重新创建的站点运行“ azure站点日志尾”时,未经授权的访问 - Unauthorized Access when running `azure site log tail` for a recreated site 使用 Azure 管道和 Docker 运行 mocha 测试 - Running mocha test with Azure pipelines and Docker 如何检测ASP.NET站点是在本地运行,以Azure Web角色运行还是以Azure网站运行? - How to detect if ASP.NET site is running locally, in azure web role, or azure web site? 尝试使用Azure托管测试站点,但SQL数据库不会传输 - Trying to host a test site with Azure, but SQL Database won't transfer 在注册域名之前发布Azure测试站点的利弊 - Pro and con of publishing Azure test site before registering domain name 将Azure VM作为测试代理来驱动负载测试到Azure云外部的站点 - Uzing Azure VMs as test agents to drive a load test to a site outside of the Azure cloud
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM