需要有关本地 CF9/Jrun 安装上的多个 URL 设置的帮助
我正在本地 Windows XP 计算机上运行 ColdFusion 9 Developer 版本。我已经将它与嵌入式 Web 服务器一起安装,我相信它是 JRun。
现在,我只能访问 127.0.0.1:8500/其他网页 - 我的所有应用程序都放置在单独的目录中,即:127.0.0.1:8500/app1、127.0.0.1:8500/app2 等
。我想要对其进行设置,以便我可以访问以下位置的每个应用程序:app1.mylocalserver.com、app2.mylocalserver.com 等。
我已经编辑了主机文件,以便这些域将路由到我的本地计算机。但如何让 CF9/Jrun 识别这些 url 并正确处理它们呢?我一直在使用 WEB-INF/jrun-web.xml 文件,但它似乎只处理虚拟文件映射。
预先感谢您的任何帮助!
加里
I am running the ColdFusion 9 Developer edition on my local Windows XP machine. I've installed it with the embedded web server, which I believe is JRun.
Right now, I can only access web pages at 127.0.0.1:8500/whatever - with all of my apps being placed within separate directories, i.e.: 127.0.0.1:8500/app1, 127.0.0.1:8500/app2, etc.
I want to set it up so that I can access each app at: app1.mylocalserver.com, app2.mylocalserver.com, etc.
I have edited the hosts file so that these domains will be routed to my local machine. But how do I get CF9/Jrun to recognize these urls and handle them correctly? I have been playing with the WEB-INF/jrun-web.xml file but that seems to handle virtual file mappings only.
Thanks in advance for any help!
Gary
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不建议使用内置的网络服务器。不能安装Apache或使用IIS吗?
I wouldn't suggest using the built in web server. Can't you install Apache or use IIS?
如果您更改了它,使这些名称定向到您的 IP,您难道不应该能够进入站点管理并在那里引用它吗?
我也使用内置的(对于 XP 上的 CF 9),到目前为止我还没有遇到任何问题(这样使用它已经一年多了)
if you changed it so those names are directed to your IP, shouldn't you just be able to go into site management and reference it there?
I use the built in one as well (for CF 9 on XP) and so far i haven't had an issue with it (been using it this way for over a year)
我不知道配置多个 URL。在IIS中,可以很简单地配置多个具有不同端口的URL或绑定不同的IP地址。
I have no idea to configure multiple URL. In IIS, it's simple to way configure multiple URL with different ports or binding different IP address.