Bug #1641 ยป lighttpd-1.5-fix-docroot.patch
src/mod_proxy_core.c (working copy) | ||
---|---|---|
break;
|
||
}
|
||
} else {
|
||
/* Adjust SCRIPT_FILENAME:
|
||
* As we do not know how the previous physical path
|
||
* has been built (indexfile etc.), we just use
|
||
* NEW_DOCROOT + OLD_PHYSICAL_PATH_WITHOUT_DOCROOT
|
||
*/
|
||
buffer_copy_string_buffer(p->tmp_buf, p->replace_buf);
|
||
buffer_append_string_len(p->tmp_buf, con->physical.path->ptr + con->physical.doc_root->used - 1, con->physical.path->used - con->physical.doc_root->used);
|
||
buffer_copy_string_buffer(con->physical.path, p->tmp_buf);
|
||
/* adjust DOCUMENT_ROOT */
|
||
buffer_copy_string_buffer(con->physical.doc_root, p->replace_buf);
|
||
/* adjust SCRIPT_FILENAME */
|
||
buffer_copy_string_buffer(con->physical.path, p->replace_buf);
|
||
buffer_append_string_buffer(con->physical.path, con->physical.rel_path);
|
||
}
|
||
} else if (buffer_is_equal_string(rw->header, CONST_STR_LEN("_pathinfo"))) {
|
||
int ret;
|