d**k 发帖数: 1223 | 1 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端
口,比如8080, 然后根据context path access 相应的application, 比如,
http://hostname:8080/app1;
http://hostname:8080/app2 .....
现在我想把不同的application deploy到不同的端口上,然后通过端口去找
application, 比如,
http://hostname:8081 对应app1; http://hostname:8082 对应app2….
这个应该怎么弄啊?谢谢了 |
g*****g 发帖数: 34805 | 2 Not sure how to do that on JBoss, but you can employ a proxy server
like pound and map the url. An application server usually only listens
to certain configured port numbers and not supposed to do what you
want.
【在 d**k 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端 : 口,比如8080, 然后根据context path access 相应的application, 比如, : http://hostname:8080/app1; : http://hostname:8080/app2 ..... : 现在我想把不同的application deploy到不同的端口上,然后通过端口去找 : application, 比如, : http://hostname:8081 对应app1; http://hostname:8082 对应app2…. : 这个应该怎么弄啊?谢谢了
|
n*********n 发帖数: 580 | |
l********0 发帖数: 283 | 4 这个还与语言有关?
【在 n*********n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : .net 可以, Java可能不行
|
m******t 发帖数: 2416 | 5
You can configure multiple server instances to listen on different
ports.
For example out of box under jboss, you have server/default/...,
you can have server/app1, server/app2, etc.
【在 d**k 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端 : 口,比如8080, 然后根据context path access 相应的application, 比如, : http://hostname:8080/app1; : http://hostname:8080/app2 ..... : 现在我想把不同的application deploy到不同的端口上,然后通过端口去找 : application, 比如, : http://hostname:8081 对应app1; http://hostname:8082 对应app2…. : 这个应该怎么弄啊?谢谢了
|
A**o 发帖数: 1550 | 6 for jboss 4.x series, go and edit
JBOSS_HOME\server\default\deploy\jboss-web.deployer\server.xml
Add your own http adaptors.
【在 d**k 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端 : 口,比如8080, 然后根据context path access 相应的application, 比如, : http://hostname:8080/app1; : http://hostname:8080/app2 ..... : 现在我想把不同的application deploy到不同的端口上,然后通过端口去找 : application, 比如, : http://hostname:8081 对应app1; http://hostname:8082 对应app2…. : 这个应该怎么弄啊?谢谢了
|
m******t 发帖数: 2416 | 7
I thought of that. It's what I would do under tomcat. With jboss though,
the applications deployed are server-wide. I'm not quite sure how to
assign them to only some http adaptors, but not other. Maybe virtualhost,
but then OP wanted different ports...
【在 A**o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : for jboss 4.x series, go and edit : JBOSS_HOME\server\default\deploy\jboss-web.deployer\server.xml : Add your own http adaptors.
|
A**o 发帖数: 1550 | 8 en. it sounds easier just running 2 instances of jboss
where each one listen to different http ports.
【在 m******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : : I thought of that. It's what I would do under tomcat. With jboss though, : the applications deployed are server-wide. I'm not quite sure how to : assign them to only some http adaptors, but not other. Maybe virtualhost, : but then OP wanted different ports...
|
g*****g 发帖数: 34805 | 9 It's more efficient to run a jboss and a pound, with pound server
just mapping the url all the way you want. That way you can deal
with 100 different port number if you need to.
【在 A**o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : en. it sounds easier just running 2 instances of jboss : where each one listen to different http ports.
|
A**o 发帖数: 1550 | 10 dunno about pound, guess as easy as apache httpd,
as long as no ssl involed.
【在 g*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : It's more efficient to run a jboss and a pound, with pound server : just mapping the url all the way you want. That way you can deal : with 100 different port number if you need to.
|
d**k 发帖数: 1223 | 11 hi buddies, thanks a lot for your suggestions. I should say this long time
ago but mitbbs is down for such a long time....
I successfully installed two jboss instance, and each of them listen from
different port. Now it is working pretty well. Thanks a lot for your help. |
c*c 发帖数: 447 | 12 you only need a reverse proxy in front of your app server layer so to the
end users the URLs will be like this:
http://app1.domain.com
http://app2.domain.com
You can even have different domain name... |