<location> and <directory> problem

Discussion in 'Apache' started by excursion, Mar 20, 2009.

  1. #1
    Hi all,
    I am using a location block to divert traffic to a WebLogic server based on the URL context root:
    
      <Location /uk>
        SetHandler weblogic-handler
        WebLogicCluster ********
        ConnectTimeoutSecs 10
        ConnectRetrySecs 2
        #HungServerRecoverSecs 300
        WLIOTimeoutSecs 3000
        Idempotent ON
        MaxPostSize -1
        FileCaching OFF
        DebugConfigInfo ON
        KeepAliveEnabled ON
        KeepAliveSecs 30
        StatPath false
        DynamicServerList OFF
        Debug ON
        WLLogFile *****
        WLProxySSL ON
        WLSocketTimeoutSecs 5
        WLTempDir *****
        MaxSkipTime 25
      </Location>
    
    
    Code (markup):
    However, traffic is sent to the WebLogic server regardless of whether the 'uk' directory exists in my Document Root (and where in the config file the directives are located). I have tried setting a <directory> element, but I understand that <location> is always processed last and is therefore overriding the <directory> each time.

    
      <Directory /uk>
            Order allow,deny
            Allow from all
      </Directory>
    
    Code (markup):
    Sometimes I have files in the 'uk' folder, and if they are present I need them to be served rather than having users sent to the WebLogic server. How do I achieve this?

    Thanks,
    Mark
     
    excursion, Mar 20, 2009 IP