user5712181
user5712181

Reputation: 1

Unable to access tomcat deployed java web application using godaddy domain name

We have VPS and domain name by go daddy . We have deployed java web application in tomcat installed on VPS. I am able to acccess appplication by ip address

for example : xxxx.xxxx:xxx:xxxx:8080/mysampleweb but i want to acccess the same application by my registered domain name i.e www.mysampleweb.com

what i did 1) I have added host entry in tomcat server.xml 2) map domain name with IP in DNS in godaddy account 3) Changed port from 8080 to 80 but no luck

Can any one share me details step to map/access tomcat deployed web application on VPS by registered domain name

Upvotes: 0

Views: 1391

Answers (1)

Anil Singh
Anil Singh

Reputation: 339

Open the server.xml file

  <Alias>www.test.local</Alias>

  <Context path="" docBase="ExtractedWARName" debug="0" privileged="true" />

  <Valve className="org.apache.catalina.valves.AccessLogValve"
         directory="logs"   prefix="localhost_access_log." suffix=".txt"
         pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false" />

where ExtractedWARName is the war extracted folder name.

Upvotes: 1

Related Questions