Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7584177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:51:27+00:00 2026-05-30T18:51:27+00:00

I have a Java based webapplication hosted on a local Tomcat server. As of

  • 0

I have a Java based webapplication hosted on a local Tomcat server. As of now, I am accessing it with a URL like http://localhost:8080/myApp. But I want to access it with a domain name, something like http://us.localApp.com/myApp. Simlilary I want other’s machines, which are on the network, to access it by this domain URL only. Do I have to make the changes in my application or Tomcat settings for this or do I need to mention just
an entry like 127.0.0.1 us.localApp.com in my hosts file.

I can see this entry in appConfig.xml and also saw some people accessing with localApp.com <!ENTITY appDomain "localApp.com">, but how should I go about it?

I have made the entry 127.0.0.1 google.com in the hosts file. When I type http://google.com I expect it redirect to the local application, that is, my application, but still it is going to the Google site. Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:51:28+00:00Added an answer on May 30, 2026 at 6:51 pm

    The hosts file is the easiest way I can think of, but it will need to be implemented locally on each machine. The alternative would be to install a local DNS server on your network and route that specific DNS request to your application server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java based web-application using Java Server Faces and Facelets. I am
We have a Java EE-based web application running on a Glassfish app server cluster.
I am using Orion server for my Java-based web application. I have a run
Hi I have a page in my java/jsp based web application which shows list
I have limited knowledge of Java-based technologies, and for business enforced reasons, I may
I have a legacy Java webservice based on Axis2. This webservice classes consist of:
I have to choose a technology to connect my Application/Presentation Layer (Java Based) with
I have existing java code and need to create Design Document based on that.
I have been developing applications based on C# (.net) and Java (J2EE) for the
I have a WorldWind application build based on the Java SDK. It has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.