users@glassfish.java.net

Re: URL - domain redirection with 301

From: David Sanmartín <kienvaser_at_gmail.com>
Date: Thu, 21 Jan 2010 12:48:35 +0100

Forgot it. I forgot to set the listeners for the virtual servers.

Thanks a lot.

On Thu, Jan 21, 2010 at 12:39, David Sanmartín <kienvaser_at_gmail.com> wrote:

> Hi again Jan. I got it redirected but i can only see the glassfish welcome
> page accesing any domain on the server or a 404 page if i try to access any
> page of the web application.
>
>
>
> On Wed, Jan 20, 2010 at 21:46, Jan Luehe <Jan.Luehe_at_sun.com> wrote:
>
>> On 01/20/10 08:49 AM, David Sanmartín wrote:
>>
>> Hi Jan. I checked that the available download of glassfish v2.1.1 in
>> https://glassfish.dev.java.net/downloads/v2.1.1-final.html it's the same
>> as I have installed.
>>
>>
>> I tried that very release. This is what I did:
>>
>> 1. Added this line to the virtual-server with id "server" in domain.xml:
>>
>> <property name="redirect_1" value="from= url-prefix=http://mydomain.com
>> "/>
>>
>> 2. Started the domain
>>
>> 3. Accessed "/" on port 8080:
>>
>> [jan-luehes-macbook-pro:v2.1.1-b31g/glassfish/bin] janluehe% telnet
>> localhost 8080
>> Trying ::1...
>> Connected to localhost.
>> Escape character is '^]'.
>> GET / HTTP/1.0
>>
>> HTTP/1.1 302 Moved Temporarily
>> X-Powered-By: Servlet/2.5
>> Server: Sun GlassFish Enterprise Server v2.1.1
>> Location: http://mydomain.com/
>> Content-Type: text/html; charset=iso-8859-1
>> Date: Wed, 20 Jan 2010 20:23:10 GMT
>> Connection: close
>>
>> Connection closed by foreign host.
>>
>> Note the redirect in the response.
>>
>>
>> Jan
>>
>>
>>
>>
>> On Wed, Jan 20, 2010 at 08:09, David Sanmartín <kienvaser_at_gmail.com>wrote:
>>
>>> I already tried to change the from as you comment (an empty string) with
>>> no positive results.
>>>
>>> Thanks for the help.
>>>
>>>
>>> On Wed, Jan 20, 2010 at 00:16, Jan Luehe <Jan.Luehe_at_sun.com> wrote:
>>>
>>>> On 01/19/10 07:07 AM, glassfish_at_javadesktop.org wrote:
>>>>
>>>>> Hi, i'm having a problem with Glassfish v2.1.1 ((v2.1 Patch06)(9.1_02
>>>>> Patch12)) (build b31g-fcs) according to this issue.
>>>>>
>>>>> I had a redirect in Glassfish v2.1 (didn't remember the build) on a
>>>>> virtual server listening the domain "domainwithoutwww.com":
>>>>>
>>>>> <property name="redirect_1" value="from=/ url-prefix=
>>>>> http://www.domainwithoutwww.com" />
>>>>>
>>>>> But with Glassfish v2.1.1 the redirect doesn't work and I see the
>>>>> glassfish welcome page (Your GlassFish Enterprise Server is now running...).
>>>>>
>>>>> Any idea?
>>>>>
>>>>>
>>>>
>>>> There used to be an issue with the kind of redirect property you've
>>>> specified, causing the target redirect to grow until it exceeded the
>>>> URL size supported by the client. This was fixed as part of CR
>>>> 6810361.
>>>>
>>>> In your example, can you try changing
>>>>
>>>> from=/ url-prefix=...
>>>>
>>>> to
>>>>
>>>> from= url-prefix=...
>>>>
>>>> i.e., specify the empty string for the "from" pattern?
>>>>
>>>> Thanks,
>>>>
>>>> Jan
>>>>
>>>> [Message sent by forum member 'kienvaser' (kienvaser_at_gmail.com)]
>>>>>
>>>>> http://forums.java.net/jive/thread.jspa?messageID=381707
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>
>>>
>>> --
>>> David Sanmartín
>>> www.david-sanmartin.net
>>>
>>
>>
>>
>> --
>> David Sanmartín
>> www.david-sanmartin.net
>>
>>
>>
>
>
> --
> David Sanmartín
> www.david-sanmartin.net
>



-- 
David Sanmartín
www.david-sanmartin.net