Ticket #1416 (new defect)

Opened 9 months ago

Last modified 5 months ago

request the uri "/personal/" but get the index.jsp's source

Reported by: songday Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: mod_proxy Version: 1.4.18
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 0

Description (Last modified by jan)

i am typing:

  $HTTP["url"] =~ ".jsp" {
    proxy.balance = "fair"
    proxy.server = ( "" => 
      (( "host" => "127.0.0.1", 
         "port" => 8090 ),
       ( "host" => "127.0.0.1", 
         "port" => 8091 )) )
  }

or

  proxy.balance = "fair"[[BR]]
  proxy.server = ( ".jsp" => (
    ( "host" => "127.0.0.1", "port" => 8090 ),
    ( "host" => "127.0.0.1", "port" => 8091 ))
  )

then i request the "/personal/index.jsp" uri , IE display right page result

but when i request the "/personal/" instead of "/personal/index.jsp" , IE will display source code of /personal/index.jsp

my email address is : songday@gmail.com

Attachments

Change History

(follow-up: ↓ 4 ) 11/22/2007 11:23:25 AM changed by anonymous

you can add .jsp to the static files exclusion

static-file.exclude-extensions = ( ".pl", ".fcgi", ".php" , ".jsp")

11/22/2007 11:25:36 AM changed by anonymous

the same thing happens with php source code if mod_proxy is used for an apache+php backend

11/23/2007 03:32:22 PM changed by jan

  • description changed.

(in reply to: ↑ 1 ) 12/06/2007 02:41:16 AM changed by anonymous

Replying to anonymous:

you can add .jsp to the static files exclusion static-file.exclude-extensions = ( ".pl", ".fcgi", ".php" , ".jsp")

thanks for your reply, so i follow your teach to add ".jsp" in "static-file.exclude" line and restart lighttpd service
then I request the uri "/personal/", the lighttpd return 404 instead of index.jsp's source code, but why lighttpd can NOT return "/personal/index.jsp" automatic ?

02/17/2008 09:59:54 PM changed by stbuehler

  • pending deleted.

mod_indexfile.c is triggered too late, and mod_proxy does the extension checking before that.

As a workaround you could use a rewrite rule "/personal/?$" => "/personal/index.jsp".


Add/Change #1416 (request the uri "/personal/" but get the index.jsp's source)




Change Properties