Coldfusion / Railo 实时服务器路径问题
我的网站文件的文件夹结构如下:
* Webroot
** mydomain
** sharedimages
在 IIS 中,我的网站设置为 www.mydomain.com 指向 Webroot->mydomain 作为主目录。
在我的网站中,我需要以某种方式显示位于“sharedimages”文件夹中的图像。 显然,我无法访问 www.mydomain.com/sharedimages/image1.jpg。 我也无法使用映射,因为它是网络路径。
这附近还有吗?
我知道的唯一方法是将 www.mydomain.com 的主文件夹设为“Webroot”文件夹,但我的网站始终显示我不想要的 www.mydomain.com/mydomain/index.cfm。
我希望网址读取 www.mydomain.com 并仍然保持该文件夹结构相同。 有什么想法吗? 谢谢
My website files are located with the folder structure as such:
* Webroot
** mydomain
** sharedimages
In IIS, my website is setup with www.mydomain.com pointing to Webroot->mydomain as it's home directory.
In my site, I need to somehow display images located in the 'sharedimages' folder.
Obviously though, I can't go www.mydomain.com/sharedimages/image1.jpg.
I also can't use mappings as it's a webpath.
Is there anyway around this??
The only way I know is to make the home folder for www.mydomain.com the 'Webroot' folder, but then my website is always displaying www.mydomain.com/mydomain/index.cfm which I don't want.
I would like the url to read www.mydomain.com and still keep that folder structure the same.
Any ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您只需要 IIS 中的共享图像文件夹的虚拟目录。 http://support.microsoft.com/kb/172138
Sounds like you just need a virtual directory in IIS for the sharedimages folder. http://support.microsoft.com/kb/172138