Need help with multiple URL setup on local CF9/Jru

2019-02-28 14:37发布

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

3条回答
老娘就宠你
2楼-- · 2019-02-28 15:40

I wouldn't suggest using the built in web server. Can't you install Apache or use IIS?

查看更多
Deceive 欺骗
3楼-- · 2019-02-28 15:42

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)

查看更多
手持菜刀,她持情操
4楼-- · 2019-02-28 15:42

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.

查看更多
登录 后发表回答