The SiteContextPipelineServlet directs a request to the appropriate site as shown in the following flow chart: