当前位置: 动力学知识库 > 问答 > 编程问答 >

jboss - Making web application go Public

问题描述:

I have my web Application deployed in jboss web server. It contains Servlets. Right now its url is localhost:8080/MyWebApp
I want to make it public so that the clients not in localhost can also access MyWebApp. I am new to this so I am not pretty sure about how to do this. I have browsed through many sites offering a domain but I dont understand where will my Server reside.
Can I make my own System as Server and run jboss Server?

网友答案:
  1. Regarding listening only on localhost, take a look at your startup scripts ; to make it listen on all the network interfaces you can use
    run.sh -b 0.0.0.0
    To listen only on a particular ip use
    run.sh -b 1.2.3.4

  2. Ideally you do not want users to access http://some_server:8080/MyWebApp but something like http://some_server/MyWebApp. To do this you will need to setup Apache with mod_jk and proxy the requests to jboss. If you have never done this before, it might be challenging. But there are plenty of resources on the internet to help you perform this task.

分享给朋友:
您可能感兴趣的文章:
随机阅读: