Skip to main content

Virtual hosts and wildcard dns

4 replies [Last post]
PashaTurok
Offline
Joined: 2013-01-05

Hello. I don't believe, that it impossible to use in glassfish virtual hosts wildcard. But when I write in hosts filed of virtual server "*.aaa.com" I cann't achieve the site by "bbb.aaa.com". Please say, how I can do it.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
PashaTurok
Offline
Joined: 2013-01-05

Nobody knows?

sergefonville
Offline
Joined: 2009-03-23

Hi,

What exactly 'does not work'? I just added an alias (starting with an
asterisk) to a listener and after that tried both options with and without
the prefix, without problem.

Could you also please share more information about your environment?

HTH

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate...

2013/1/29

> Nobody knows?
>
>
> --
>
> [Message sent by forum member 'PashaTurok']
>
> View Post: http://forums.java.net/node/**893627
>
>
>

buddypine
Offline
Joined: 2011-11-17

Hi,
I'm also having problems with this, I've defined a virtual server to serve sub.mydomain.com and in the "Hosts" field in the admin console for the Virtual Server I have put "sub.mydomain.com, *.sub.mydomain.com". Requests to something.sub.mydomain.com are not handled by the virtual server but sub.mydomain.com works as expected.

Should this work?
Thanks
Phill

swchan2
Offline
Joined: 2005-03-29

Wildcard is not support. You have to use explicit host name here.