Coldfusion / Railo 实时服务器路径问题

发布于 2024-09-28 20:07:46 字数 472 浏览 0 评论 0原文

我的网站文件的文件夹结构如下:

* 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 技术交流群。

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

发布评论

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

评论(1

星光不落少年眉 2024-10-05 20:07:46

听起来您只需要 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

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