Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running IIS 7 and JBoss AS 7 Simultaneously from a Windows 2008 Server

Does anybody know how to allow both IIS 7 and JBoss AS 7 to run and host applications on a Windows 2008 Server? I have a Windows 2008 VPS that I have hosting some ASP.NET websites and apps via IIS through port 80, the default. Now I want to host some JBoss Seam web apps (and RESTEasy web services), which presumably I will need to do on another port (eg. 8080).

I have modified the standalone.xml configuration file in JBoss AS in the standalone configuration folder so that the socket binding name "http" runs from port 8080. However the server is not responding when I try to request my apps that are running on JBoss AS from browsers on other machines outside the server, eg:

www.notmyrealdomain.com:8080

... does not return any response. When I use

localhost:8080

... to browse on the server itself, I can load web page and applications from JBoss AS just fine. So surely there is either a Windows setting or JBoss AS setting that requires changing to get this to work.

Any help much appreciated.

like image 403
Fuzzy Analysis Avatar asked May 26 '12 11:05

Fuzzy Analysis


1 Answers

You need to make jboss as 7 instance bind against the ip that resolves to www.notmyrealdomain.com.

you can do that by running jboss as:

standalone.bat -b <EXTERNALIP>

Regards

like image 110
feniix Avatar answered Oct 19 '22 05:10

feniix