在云中的 IIS7 上托管学生项目

发布于 2024-09-26 18:06:35 字数 340 浏览 0 评论 0原文

我计划有一天教授 ASP.NET MVC 课程。我想将学生项目托管在可通过互联网访问的网络服务器上。为此,我计划在 Amazon ec2 上租用一台 Windows 机器。学生将上传他们的 ASP.NET 网站,以便他们可以在线查看他们的项目并允许其他学生也访问它们。 我的问题是如何设置带有 IIS 7.x 的 Windows 2008 服务器来支持此功能。我是否应该在 IIS 站点下为每个学生创建一个虚拟目录/应用程序,并通过学生可以访问以发布其内容的某些界面公开该虚拟目录/应用程序。我应该使用 SFTP 还是 WebDav?我不想创建 每个学生计算机上的 Windows 用户帐户。如果有人有这方面的经验,我想听听他们的意见。任何建议/链接也将不胜感激。

I am planning to teach an ASP.NET MVC course some time. I would like to host the students project's on a web server accessible via internet. To this effect I am planning to rent a Windows machine on Amazon ec2. The students will be uploading their ASP.NET Websites so that they can see their projects online and allow other students to access them as well.
My question is how do I set up a Windows 2008 server with IIS 7.x to support this functionality. Should I create a virtual directory/application for each student under an IIS site and expose that virtual directory/application through some interface the students can access to publish their content. Should I use SFTP or WebDav. I don't want to create
windows user accounts on the machine for each student. If anyone has experience with regard to this, I would like to hear them. Any suggestions/links would be appreciated as well.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

请恋爱 2024-10-03 18:06:35

您可以让您的学生使用 AppHarbor。部署是通过使用 Git 推送代码来完成的,就像在 Heroku 上一样。我们认为这比使用 SFTP og WebDav 更优雅。我们承诺始终提供适合您学生目的的免费计划。

You can have your students use AppHarbor. Deploying is done by pushing code with Git, just like on Heroku. We think this is more elegant than using SFTP og WebDav. We pledge to always offer a free plan which should work for your students purposes.

懵少女 2024-10-03 18:06:35

如果您不希望(或有风险)学生覆盖彼此的作业,则 -

  • 为每个学生创建一个单独的站点(使用 HTTP 主机标头在多个站点之间共享服务器的 IP 地址)

  • 上传方法 1:将 FTP 发布添加到每个站点 - 不需要 Windows 帐户,但如果需要,则需要单独的用户 ID防止学生互相干扰

  • 上传方法2:在每个站点上启用WebDAV。同样,如果您希望防止学生互相搞砸作业,您需要为每个学生分配一个单独的 Windows 帐户(WebDAV 需要 Windows 帐户)。

如果这不是问题,那么只需创建一个站点并为每个人提供自己的应用程序,并使用共享的用户名/密码来允许他们上传他们的项目。

WebDAV 让生活变得更轻松,因为每个学生都可以直接拖拽并查看内容。将其站点直接复制到自己的文件夹,而不必启动 FTP 客户端。

If you don't want (or have the risk of) students overwriting each other's work then -

  • Create a separate site per student (use HTTP host headers to share the server's IP address across multiple sites)

  • Uploading Method 1: Add FTP Publishing to each site - doesn't require a windows account but does need a separate user id if you want to keep students from interfering with each other

  • Uploading Method 2: Enable WebDAV on each site. Again if you want to keep students from botching each others work you'll need a separate windows account for each one (WebDAV requires Windows accounts).

If this is not a concern then just create a single site and give each one their own application and use a shared username/password to allow them to upload their projects.

WebDAV makes life a bit easier because each student can just drag & drop copy their site directly to their own folder instead of having to fire up an FTP client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文