From 4e3c7367af210acbc1231ad7c0d50cfffca2b111 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 15 Apr 2013 12:29:08 +1000 Subject: [PATCH] virtual host example --- .../org/eclipse/jetty/server/handler/ContextHandler.java | 3 ++- .../test-jetty-webapp/src/main/config/webapps/test.xml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java index 3d5fad459cb..48fa63858c3 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java @@ -303,7 +303,8 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu * * @param virtualHosts * Array of virtual hosts that this context responds to. A null host name or null/empty array means any hostname is acceptable. Host names may be - * String representation of IP addresses. Host names may start with '*.' to wildcard one level of names. + * String representation of IP addresses. Host names may start with '*.' to wildcard one level of names. Host names may start with '@', in which case they + * will match the {@link Connector#getName()} for the request. */ public void addVirtualHosts(String[] virtualHosts) { diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/webapps/test.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/webapps/test.xml index 1bef8abc9dd..ff7eb6b8056 100644 --- a/tests/test-webapps/test-jetty-webapp/src/main/config/webapps/test.xml +++ b/tests/test-webapps/test-jetty-webapp/src/main/config/webapps/test.xml @@ -45,7 +45,10 @@ detected.