You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Howard Jones <ho...@thingy.com> on 2000/02/10 13:53:06 UTC

mod_rewrite/5733: "On-the-fly Content-Regeneration" will not work as described.

>Number:         5733
>Category:       mod_rewrite
>Synopsis:       "On-the-fly Content-Regeneration" will not work as described.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          doc-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Feb 10 05:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     howie@thingy.com
>Release:        1.3.11
>Organization:
apache
>Environment:
Redhat Linux 6.1 fresh install (kernel 2.2.12)
>Description:
"RewriteCond %{REQUEST_FILENAME}   !-s
RewriteCond ^page\.html$          page.cgi   [T=application/x-httpd-cgi,L]"

1) The second RewriteCond should be a RewriteRule.
2) the -s and -f checks seem  to just do a stat() on what they are given, anyway, so unless your documentroot is / then the file will never exist?
3) Under what conditions *would* this work? :)
>How-To-Repeat:
http://www.apache.org.uk/docs/misc/rewriteguide.html
>Fix:
Subst RewriteCond for RewriteRule in second line.
Add note, or additional info into file-test section to clarify if they check URIs or files (this example implies URIs, the docs says 'file').
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]