Glassfish v2.1.1 site redirect

Simple to do, hard to locate the information on how to.
Hopefully you’ll find this a lot easier..

Navigate to :

Configuration, HTTP Service, Virtual Servers, server

Scroll to bottom of page :
Add Property

Name :
redirect_1

Value :
from=/{name of webapp to redirect} url={URL to redirect traffic to}

(dont include the ‘{‘ ‘}’ brackets)

It should look something like this :
from=/mywebapp url=http://www.google.co.uk

Click ‘Save’ button.

Done!

2 comments

  1. Pingback: glassfish standalone mode – redirecting domain.com to www.domain.com | Code and Programming

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s