Jump to content

<location> and <directory>


mwstewart

Recommended Posts

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>

 

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>

 

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

Link to comment
https://forums.phpfreaks.com/topic/150300-and/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.