Reputation: 1
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
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 "%r" %s %b" resolveHosts="false" />
where ExtractedWARName is the war extracted folder name.
Upvotes: 1