changeset 1840:d0398bade693

linked sites
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 30 Jan 2025 19:36:32 -0700
parents 908a43d14206
children 08d650b31a80
files src/luan/host/WebHandler.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 908a43d14206 -r d0398bade693 src/luan/host/WebHandler.java
--- a/src/luan/host/WebHandler.java	Thu Jan 30 18:14:15 2025 -0700
+++ b/src/luan/host/WebHandler.java	Thu Jan 30 19:36:32 2025 -0700
@@ -130,6 +130,9 @@
 			}
 			security(luan,dirStr);
 			LuanHandler luanHandler = new LuanHandler(luan,domain);
+			String luanDomain = luanHandler.getDomain();
+			if( !luanDomain.equals(domain) )
+				return domainHandler.getHandler(luanDomain);
 
 			FileHandler fileHandler = new FileHandler(dirStr+"/site/");
 			Handler handler = new ListHandler( luanHandler, fileHandler );