I have purchased a domain name www.mydomainname.com Created a web application and deployed it on glassfish 4.1.1 on ubuntu VS. Right now I am able to access the application from browser by accessing http://my-public-ip:8080/mydomainname/index.jsp what I need is to enter mydomainname.com on a web browser and end up on my application and not on the default page at the registrars site.
I tried logging into my account at the registrar and forwarded requests to http://mydomainname.com to http://my-public-ip:8080/mydomainname/index.jsp but it still displays the ip on the address bar. How do I accomplish this?
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<listener>
<description>ServletContextListener</description>
<listener-class>com.qualebs.controller.SessionListener</listener-class>
</listener>
<listener>
<description>ServletContextListener</description>
<listener-class>com.qualebs.controller.ContextListener</listener-class>
</listener>
<listener>
<description>fileupload temporary file cleaner</description>
<listener-class>org.apache.commons.fileupload.servlet.FileCleanerCleanup</listener-class>
</listener>
<servlet>
<servlet-name>ImageServlet</servlet-name>
<servlet-class>com.qualebs.controller.ImageServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AsyncServlet</servlet-name>
<servlet-class>com.qualebs.controller.AsyncServlet</servlet-class>
</servlet>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<jsp-config>
</jsp-config>
</web-app>
willing to post any relevant code if deployment descriptor is not relevant here. thanks in advance