使用 WebRole 在 Blob 存储 VHD 上创建虚拟目录
我有兴趣在 blob 存储 VHD 上创建虚拟目录。首先我考虑 Hosted Web Core Web Role (http://code.msdn.microsoft.com/hwcworker),但作者建议我们应该坚持使用 Web Role,因为 SDK 1.3 完全支持 IIS7 (http://blog.smarx .com/posts/serving-your-website-from-a-windows-azure-drive),如:
[更新 12/14/2010] 现在 SDK 1.3 及更高版本支持完整的 IIS,我不明白为什么我的 HWC不再需要工人解决方案。我将这篇文章和其他博客文章留给感兴趣的人,但我不会修复任何错误。 (文档中有一点错字,并且存在阻止 VHD 上传大于 2GB 的错误。可能还有其他我不知道的问题,所以请考虑一下自己受到警告。)
我们如何仅使用 WebRole 创建虚拟目录或设置哪些配置文件 ?任何链接、教程或示例/例子都会很棒。
编辑:进一步澄清:我们的应用程序由不同的组件组成,一个组件存储在 WebRole 上,其他组件需要存储在 azure 驱动器上,因为这些组件的大小可能非常巨大,例如 1 TB,因为这些组件是用户提交的 aspx脚本,它们是可插入的 aspx 代码,并成为应用程序的一部分。我们需要创建 VirtualDirectory 条目以使 Azure Drive 中的 aspx 脚本能够在服务器上执行。
编辑:更多说明:如果我能够仅使用 azure 驱动器作为虚拟目录来服务网页,那么我将根据我们的需要对其进行修改。
谢谢。
I am interested to create virtual directories on blob storage VHD. First I consider the Hosted Web Core Web Role (http://code.msdn.microsoft.com/hwcworker), but the author suggested that we should stick to Web Role as SDK 1.3 fully supported IIS7 (http://blog.smarx.com/posts/serving-your-website-from-a-windows-azure-drive), as:
[UPDATE 12/14/2010] Now that SDK 1.3 and above support full IIS, I don’t see why my HWC Worker solution is needed anymore. I’m leaving this and other blog posts up for those interested, but I’m not fixing any bugs. (There’s a typo in one bit of documentation and a bug preventing VHD uploads larger than 2GB. There are probably other issues I don’t know about, so consider yourself warned.)
How would we create virtual directory using just WebRole or setting which configurations file ? any link, tutorial or sample/example would be great.
EDIT: further clarification: our application consists of different components, one component is stored on WebRole, other components are required to store on azure drive, because those components can be very huge in size, such as 1 TB, as those are user submitted aspx scripts, which are pluggable aspx code, and become part of application. We need to create VirtualDirectory entry to make those aspx scripts in Azure Drive to be able to execute on server.
EDIT: more clarification: If I could be able to just use azure drive as virtualdirectory for serving web page, then I will modify it to our need.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我弄清楚了:SDK 1.3 中的 WebRole 允许在单个实例上托管多个网站,如 http://msdn.microsoft.com/en-us/library/gg433110.aspx
简而言之,我在 ServiceDefinition.csdef 中的条目如下所示:
ServiceDefinition.csdef:
I figure it out: WebRole in SDK 1.3 allow to host multiple websites on a single instance as specified in http://msdn.microsoft.com/en-us/library/gg433110.aspx
In short, I made the entries in ServiceDefinition.csdef something as follows:
ServiceDefinition.csdef: