>Number:         1361
>Category:       mod_include
>Synopsis:       "include virtual  cannot include remote documents
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Nov  5 04:30:00 PST 1997
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        all
>Environment:
gcc  and cc  
Solaris (also X86), BSDI, OSF/1, Linux
>Description:
OK, if I have a parsed file as follows:
<HTML>
..
<!--#include virtual="http://www.yourdomain.com/haha.html"-->
...
</HTML>
Apache tries to translate the URL of the document to include into a path which 
belongs to the local machine.
>How-To-Repeat:
try my example
>Fix:
Well, kinda.
I noticed that the "include virtual" tag calls the following functions in this 
order:
handle_include()
  sub_req_lookup_uri()  (that's where the messup happens I guess)
  run_sub_req()   (that one returns 404, cause of the URL that gets previously 
built, has the url'd path directory of DocumentRoot 
at the beginning of the actual URL that we entered (this can be logged easily))
     invoke_handler()  (if you log inside this function, you will see the bad 
location already)

Problem is, I don;t understand well how a remote include would be handled, 
since for the request, 
there are certain items being copied (i.e. the server_rec, which, how in hell 
can you get it from the remote server ?)

I am open to suggestions or a simple bop in the head if I am doing something 
wrong in the html.
HHHAHAHAHAH
>Audit-Trail:
>Unformatted:

Reply via email to