wood burning stoves 2.0*
The moose likes Struts and the fly likes URL routing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "URL routing" Watch "URL routing" New topic
Author

URL routing

skumar mk
Greenhorn

Joined: Jul 02, 2008
Posts: 12
Hi all,

I want to deploy my webapplication in public server so that it can be accessed outside my localnetwork.How to access my appliaction running in the server when user types the url
www.xyzcompany.com/MyProject so that he can able to run my applcation.
how can i route the www.xyzcompany.cm/MyProject to http://servername:8080/MyProject
Please can anybody give the steps to install it on the server
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
If the main web server running www.xyzcompany.com is Apache, you could use the mod_rewrite module for this.


Ping & DNS - my free Android networking tools app
Siddharth Naik
Ranch Hand

Joined: Apr 09, 2006
Posts: 35
I don't understand this question.

I want to deploy my webapplication in public server ...
...how can i route the www.xyzcompany.cm/MyProject to http://servername:8080/MyProject


If you are deploying the application on public server why would you want to route it to local server?

Are you asking how to publish your application online from networking point of view? In that case you would need to register your domain and map static IP of the public server with domain name.


Thanks<br />Sid
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
Are you asking how to publish your application online from networking point of view? In that case you would need to register your domain and map static IP of the public server with domain name.

That would route all traffic to www.xyzcompany.com to that server, not just www.xyzcompany.com/MyProject (which is the problem as I understand it).
skumar mk
Greenhorn

Joined: Jul 02, 2008
Posts: 12
Hi All,

please explain me steps on
how to map static IP of the public server with domain name


Thanks in advance
Siddharth Naik
Ranch Hand

Joined: Apr 09, 2006
Posts: 35
Thanks Ulf for your insight. I didn't notice that.

Skumar,
You will need to find a web hosting (for java applications) and domain name registering company. Generally both these services are provided by a single company. Web hosting service will give you access to a public server and domain name service will have functionality to route your domain to IP address of specified public server. You can find tons of such companies by google search.

If you want a specific application to route to your local server then please follow the procedure described by Ulf.
[ July 04, 2008: Message edited by: Siddharth Naik ]
Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100

i once used a tool called no-ip. i binds your dynamic IP to a static web address that they also provide for free. try it out. it might work for you.
 
wood burning stoves
 
subject: URL routing
 
Similar Threads
Not Found Error
maigarting a project from tomcat 4 to jboss4!!!!
Problems with a project with Netbeans
Apache loadbalancing, mod_rewrite, mod_proxy
Servlet mapping