Re: does REQUEST_URI exclude QUERY_STRING?
Ineiev <[email protected]> Fri, 6 Feb 2026 15:14:59 +0000
| Newsgroups | gmane.comp.apache.user |
|---|---|
| Message-ID | <aYYFcy98puaLqDcS@fingal> |
--aUjOSoE6rwrO5dUN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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
>=20
> 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=
=2Ehtml#a200869c456b0bd046a32942f9ff51af4
>=20
> 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=3D'none' var=3D'REQUEST_URI' -->
$ APACHE_ADDR=3D127.0.0.1 APACHE_PORT=3D4913 APACHE_ROOT=3D`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
--aUjOSoE6rwrO5dUN
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEvZ1N7nsv8cvvLuDE4KzT4Mvnh0oFAmmGBW0ACgkQ4KzT4Mvn
h0pHowgAl4q6y2UL0ipW0b1bw7hk2anumc6CsBI5em3N+gelBDyZMz+qrooMr4Bc
HuxCaktSdf4FXfs1iAKKn4uyX8Ru4MRhySYz6C5JAaSWHX2vyGOwdWdvcq1Oos8e
RSUNAUlyKo5dqrCCprBpcO4y7L6UgEZ1Xc7lAh+7r+UvvwsqwBvFv9GEfsWP0m6p
JhUvY6y6sdgEoGj4mIRL6OG6NnW/TogFRh6h+OIKq1SY419n3r5Q9aDM/muISWWX
X3kZHG6BzSQM0t55/EcQkPWpCluLNjvf+N4Hq5jlZP+KsZl7LQm99tcahufPEosa
TAlUlZhlD8doLc2+DvBUG0qDQESyNA==
=ytxx
-----END PGP SIGNATURE-----
--aUjOSoE6rwrO5dUN--