File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Virtual host configuration

 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to Jboss.I am using Jboss 4.0.4.When I start up the server the application can be accessible from http://132.186.200.200:8080/SelfCare/.but I want to have the url as something like http://www.SelfCare.com.Can it be possible?if possible please help me out.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the comment.
I go through the content and make the jboss-web.xml file like this:

and the server.xml file like this


now what is the url i had to access.it did not start up defaultly.Please let me know
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried that url but it did not work at all...I tried different other usrl like http://suddhasattwa/,http://suddhasattwa/RMTWeb,http://suddhasattwa:8080/ etc.Anyhthing is not working. Is there something more to do as configuartion?Is the xml file is not properly written?Also I want the url as www.suddhasattwa.com.Please reply.
 
Javid Jamae
Author
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you own www.suddhasattwa.com? Set your host to:



Point your jboss-web.xml to:



And make sure you have DNS set up correctly to point that domain name to your machine?

Also, try configuring the AccessLogValve on the Engine (I'm pretty sure you can do this) to see if the request is being sent to the defaultHost that is configured in the Engine (localhost).
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I don't own a domain.I just want to configure an application in LAN.But want that other person don't need to type the IP address.I want to type a predefined url.For that reason I want the virtual host.Also I have written earlier that I am new to JBoss, so I dont know how to configure AccessLogValve.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some time back i had tried this. That post talks about JBoss-5, but i guess should be similar for JBoss-4.x
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the link.I went through the doc.Can you please tell me where to find hosts file?Also can it not be possible to have the url without the Ip address?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suddhasattwa Mukherjee wrote:Can you please tell me where to find hosts file?


On *nix Operating system its under /etc/hosts. For Windows its unders system32/drivers/etc/hosts (if i remember correctly). A system search will show up the file.

Also can it not be possible to have the url without the Ip address?


Sorry, i did not understand this question. Which IP address are we talking about?
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the host file at the location C:\system32\driver\etc\.For the second question I was wrong.I want to have url where no port will be visible.
 
Javid Jamae
Author
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is always a port, but the browser just hides it from the user if its the standard HTTP port (80). You can either configure the Tomcat/JBossWeb connector in server.xml to use port 80, or you can use a load balancer that is configured to use port 80. The load-balancer can be hardware or software (such as Apache/IIS using mod_jk or mod_proxy to point to JBoss).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic