Question: I've googled around and only found solution where they suggest putting an apache httpd in front of glassfish. Sure, that works.

But what if I do not wish to/cannot put any thing in front of glassfish?

Without using the index.jsp in the docroot of the domain to have something like:

```
<%
    String redirectURL = "https://stackoverflow.com/";
    response.sendRedirect(redirectURL);
%>

```

Can I make browser to be redirected when I point it to: <http://my.glassfish.domain/> ?

To provide a little bit more details:

I tried adding a property to the vitual server as:
redirect\_1 from=/ url=<https://stackoverflow.com/>
But that make everything to be redirected to <https://stackoverflow.com/>, eg. <http://my.glassfish.domain/myapp> redirects to <https://stackoverflow.com/> while all I want was <http://my.glassfish.domain/> to be redirected to <https://stackoverflow.com/>

Any help please?

Answer: 
I think the solution you dismiss is actually the 'best'...

Write a jsp in the docroot for the server.

If you really have to do something fancier, due to complications that you haven't described, you may want to try creating a new DefaultServer. Look in your domain-dir/config/default-web.xml. 

You may want to look at the [code of the DefaultServer that ships with GlassFish Server 3](http://fisheye5.cenqua.com/browse/glassfish/appserv-webtier/src/java/org/apache/catalina/servlets/DefaultServlet.java#r1.17) as a guide.
Modify the DNS mapping for the given URL in your DNS Server (/etc/host on your local machine) . May not be a feasible solution for you - but it does the work of directing the user.