On Thu, Feb 05, 2026 at 02:09:54PM -0500, Eric Covener wrote: > > [0] https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html > > I find it surprising that it includes the query. Both modules are > finding their way to the same internal value in slightly different > ways: > https://nightlies.apache.org/httpd/trunk/doxygen/structrequest__rec.html#a200869c456b0bd046a32942f9ff51af4 > > Is there any kind of URL manipulation prior to hitting the SSI? > Possibly you are seeing the decoded form of something that was > encoded/re-encoded as e.g. /foo%3fbar?
$ ls -A
apache.conf uri.html
$ cat apache.conf
# Simple Apache2 configuration with SSI enabled.
# Public domain; initially written by ineiev.
PidFile ${APACHE_ROOT}/pid
ErrorLog /dev/null
CustomLog /dev/null combined
Include /etc/apache2/mods-available/authz_core.load
Include /etc/apache2/mods-available/mime.load
Include /etc/apache2/mods-available/mime.conf
Include /etc/apache2/mods-available/mpm_prefork.load
Include /etc/apache2/mods-available/mpm_prefork.conf
Include /etc/apache2/mods-available/include.load
Listen ${APACHE_ADDR}:${APACHE_PORT}
ServerName ${APACHE_ADDR}
<VirtualHost ${APACHE_ADDR}:${APACHE_PORT}>
DocumentRoot ${APACHE_ROOT}
AddHandler server-parsed .html
Options +IncludesNoExec
</VirtualHost>
$ cat uri.html
<!--#echo encoding='none' var='REQUEST_URI' -->
$ APACHE_ADDR=127.0.0.1 APACHE_PORT=4913 APACHE_ROOT=`pwd` \
apache2 -f `pwd`/apache.conf -k start
$ wget -q -O - 'http://127.0.0.1:4913/uri.html?query-string'
/uri.html?query-string
signature.asc
Description: PGP signature
