users@grizzly.java.net
Re: Virtual Hosts in HttpServer
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
In reply to
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: Oleksiy Stashok <
oleksiy.stashok_at_oracle.com
>
Date
: Thu, 27 Mar 2014 11:38:43 -0700
Hi Alex,
you're right currently virtual hosts are not exposed via HttpServer API.
You can file an issue and for sure contributions are welcome ;)
WBR,
Alexey.
On 27.03.14 09:28, Alexander Pokahr wrote:
> Hi all,
>
> I can see that the Mapper supports virtual hosts:
>
https://grizzly.java.net/docs/2.3/xref/org/glassfish/grizzly/http/server/util/Mapper.html
>
>
> But when adding HttpHandlers to an HttpServer through its
> ServerConfiguration,
> the HttpHandlerChain ignores the host part of the mapping and always
> uses "localhost":
>
https://grizzly.java.net/docs/2.3/xref/org/glassfish/grizzly/http/server/HttpHandlerChain.html#260
>
>
> I wonder, if it is possible to add handlers in a way that they are
> associated
> to a virtual host name. Any hints in the right direction would be much
> appreciated.
>
> Kind regards and thanks in advance,
> Alex
>
This message
: [
Message body
]
Next message
:
Aris Alexis: "proper use of the server"
Previous message
:
Alexander Pokahr: "Virtual Hosts in HttpServer"
In reply to
:
Alexander Pokahr: "Virtual Hosts in HttpServer"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]