proxy a directory

Discussion in 'Install/Configuration' started by mbiven, Sep 21, 2006.

  1. mbiven

    mbiven New Member

    I'm having trouble finding documentation on using the reverse proxy feature. I'm trying to have proxied to a different site.

  2. mistwang

    mistwang LiteSpeed Staff

    You need to define a "Web Server" external application for the target web server.
    Then define a "proxy" context with URI "/directory/", select the external application just defined as handler.

    All requests to will be forwarded to the destination server without any change.
  3. bambito

    bambito Member

    Since this is a similar thread, I won't waste space and create another one.

    I set up a light apache server on the same machine running on port 8080. I setup an external app pointing to:

    Type Name Address
    Web Server Apache 2.2.3 localhost:8080

    and script handler to:

    Suffixes Handler Type Handler Name
    shtml Web Server [Server Level]: Apache 2.2.3

    I have two problems.

    Litespeed passes .shtml to Apache fine, but if I ask for index.shtml specifically, my browser wants to download it. The other .shtml files don't have this problem.

    If I change Apache to just only listen on localhost, Litespeed gives me a 503 error.

    I have index.shtml under the Index Files just in case you wanted to know. Any suggestions?
  4. mistwang

    mistwang LiteSpeed Staff

    You probably need to clear your browser cache, index.shtml might be cached when the proxy has not been properly configured.

    Listening on localhost will not cause 503 error, you need to make sure that localhost:8080 is working properly at Apache side.

Share This Page