使用 FlowPlayer 访问 IIS 7.5 中虚拟目录上的 .FLV 电影
我在 IIS 7.5 中设置了一个网站,其中一个虚拟目录指向网站 www 根目录之外的本地文件夹,例如:
the website is c:\website
the virtual directory is in c:\images
我使用 flowplayer 要播放我的电影,当我将电影路径放入网站根目录结构中时(例如 c:\website\movies\a.flv),它在播放器中工作正常,但如果我将它们放在虚拟目录中并且使用以下命令让玩家从那里开始播放相对 URL,它不起作用
我怀疑这与权限或 Flash 配置有关,以允许它访问网站范围之外的目录,但我不知道在哪里编辑此类设置
谢谢
I have a website setup in IIS 7.5 with a virtual directory pointing to a local folder outside of the www root of my website e.g:
the website is c:\website
the virtual directory is in c:\images
I use flowplayer to play my movies, when I put the movie path in my website root directory structure, say c:\website\movies\a.flv it works fine in the player, but if I put them inside the virtual directory and point the player to play it from there using a relative URL, it doesn't work
I suspect that this has to do with either permissions or flash configurations to allow it to access directories outside of the scope of the website, but I have no idea where to edit such settings
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建虚拟目录时,您可以通过单击“连接为...”并指定确切的用户或使用“应用程序用户(直通身份验证)”来设置“直通身份验证”意味着使用网站本身运行的用户。
如果您希望使用与您的网站运行时相同的安全上下文,请转到您的网站并点击 IIS 管理器控制台右上角区域的“基本设置”。您将看到您的网站正在运行的“应用程序池:”。
接下来,取消该对话框并转到左上角的“应用程序池”。单击您的站点正在使用的应用程序池,然后转到“高级设置”。在这里,您可以在“流程模型”部分下看到“身份”。这是您的网站运行的用户。唯一的例外是,如果您的网站上发生了某种“冒充”行为,如果您提出了上述问题,这种情况就不太可能发生。 (因为它表明/需要对这个主题有更深入的了解。在这种情况下,您可能已经知道了。无意冒犯,哈哈。)
一旦您知道我们正在谈论的用户,您只需转到 Windows 资源管理器并设置虚拟目录指向的真实物理文件夹的权限。
When you create the virtual directory it gives you the opportunity to set the 'Pass-through authentication' by clicking 'Connect as...' and specifying either an exact user OR to use the 'Application user (pass-through authentication)' which means to use the user that the website itself runs under.
If you are looking to use the same security context your website runs under, go to your website and hit 'Basic Settings' from the top-right area of the IIS Manager console. You'll see the 'Application pool:' your site is running under.
Next, cancel out of that dialog and go to 'Application Pools' on the top left. Click on the application pool your site is using then go to 'Advanced Settings'. Under here you can see 'Identity' under the 'Process Model' section. This is the user that your website runs under. The only exception to this is if you have some kind of 'impersonation' happening on your website, which isn't likely if you've asked the above question. (As it suggests/requires a deeper understanding of this topic. In which case, you'd probably know this already. No offense, haha.)
Once you know what user we are talking about, you can simply go to Windows Explorer and set permissions to the real physical folder that your virtual directory points to.