在我的 asp .net 主机上创建沙箱区域的最佳方法
我想在我的托管提供商上创建一个只有客户才能看到的沙箱区域。例如,生产网站位于 www.domain.com。但是,是否可以在 www.domain.com/sandbox 创建网站的沙盒版本并仅向客户端提供访问权限?
如果是这样,最好的方法是什么?我是否必须在沙箱文件夹中手动创建登录页面等?或者,我可以在沙盒区域中发布测试网站并通过我的托管提供商限制访问吗?
I would like to create a sandbox area on my hosting provider that only the client can see. For example the production website would be at www.domain.com. However, would it be possible to create a sandbox version of the website at www.domain.com/sandbox and only provide access to the client?
If so, what is the best method? Do I manually have to create a login page etc in the sandbox folder? Or, can I publish the test website in the sandbox area and restrict access through my hosting provider?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,生产站点的沙箱/登台/测试版本将是生产部署的完整副本,而不仅仅是登录页面。
您将拥有应用程序和数据库的单独副本,然后通过另一个主机名/IP 地址或在完全不同的计算机上提供服务。
例如,您可以拥有 www.domain.com 和 test.domain.com,每个都有自己独立的软件版本。这样您的客户就可以在沙盒中尽情玩耍,而不必担心破坏生产环境。
要限制访问,您可以使用 IIS 中的访问控制列表将沙箱限制为特定的 IP 地址(或范围),或者使用用户名/密码所需的安全性启用基本支持。
Generally a sandbox/staging/test version of your production site would be a complete duplicate of your production deployment, not just the login page.
You'd have a separate copy of the application and the database, and then serve it via another hostname/IP address or on an entirely different machine.
For instance, you could have www.domain.com and test.domain.com, each with the own isolated version of the software. This way your client can play as much as they want in the sandbox without fear of damaging the production environment.
To restrict access you could use access control lists in IIS to restrict the sandbox to a specific ip address (or range), or enable basic support on it with a username/password required security.