File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes how to setup separate ports for web applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "how to setup separate ports for web applications" Watch "how to setup separate ports for web applications" New topic
Author

how to setup separate ports for web applications

greg dan
Greenhorn

Joined: Sep 20, 2011
Posts: 3
Hi

Currently all my web applications are listening on the same port set in default/deploy/jbossweb-tomcat55.sar/server.xml (jboss 4)

For security reasons I have to provide separate port for each web application(now just adding a few new Connectors to server.xml so each one of web apps will be accessible on )

This is my Connector in a server.xml right now:

<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
emptySessionPath="true"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"/>

Thanks
ravikanth reddy
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
We had same issue.
I am not sure there is any way to configure different port for for different web application if all web apps are resideing single JBOSS instance. Instead you can enable seucrity for each web application. Create different username and password for each.

To resove this issue I am using same port for different applications with different username and password.


Also You can create virtual host for each web app.


Please ignore if my reply won't help.


Ravikanth Malyala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to setup separate ports for web applications
 
Similar Threads
two connector ports in server.xml. what it means?
SSL Redirect in Tomcat Standalone
problem in starting tomcat with eclipse
how to setup separate ports for web applications
Different webapps on same instance of tomcat on different ports