v0.42.2_fix2

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 12:31:28 +01:00
1 parent 15c7f9ff9e
commit 25148f26eb
14 files changed
+407 -54

No files matched your search

+4 -11
View File
@@ -5199,9 +5199,9 @@ curl -sS -D - -o /dev/null \
Apache runtime. Supported directives are compiled into RustProxy Web Server rules.</p>
<h3 data-i18n="webServiceHtaccessDocsSupportedTitle">Supported subset</h3>
<p><code>RewriteEngine</code>, <code>RewriteBase</code>, <code>RewriteCond</code>, <code>RewriteRule</code>,
<code>DirectoryIndex</code>, <code>Options +/-Indexes</code>, <code>AddType</code>,
<code>DirectoryIndex</code>, <code>AcceptPathInfo On/Off/Default</code>, <code>Options +/-Indexes</code>, <code>AddType</code>,
<code>AddHandler</code> (PHP extensions), <code>Header set/add/unset</code>, <code>ExpiresActive</code>,
<code>ExpiresDefault</code>, <code>ExpiresByType</code>, <code>Require all granted/denied</code>.
<code>ExpiresDefault</code>, <code>ExpiresByType</code>, <code>Redirect/RedirectMatch</code>, <code>ErrorDocument (local URL)</code>, <code>Require all granted/denied</code>.
</p>
<h3 data-i18n="webServiceHtaccessDocsRewriteTitle">Rewrite compatibility</h3>
<p data-i18n="webServiceHtaccessDocsRewrite">Rewrite conditions support REQUEST_FILENAME file tests (-f, -d,
@@ -5213,20 +5213,13 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]</code></pre>
<h3 data-i18n="webServiceHtaccessDocsPhpTitle">PHP-FPM</h3>
<p data-i18n="webServiceHtaccessDocsPhp">.htaccess may add PHP extensions with AddHandler, but the PHP-FPM
endpoint, timeouts and concurrency remain controlled by the Web Service PHP-FPM tab. Apache SetHandler
proxy socket syntax is intentionally not accepted.</p>
<p data-i18n="webServiceHtaccessDocsPhp">.htaccess may add PHP extensions with AddHandler. AcceptPathInfo On enables PHP script/path suffix routing and Off disables it, overriding the Web Service PATH_INFO switch. The PHP-FPM endpoint, timeouts and concurrency remain controlled by the Web Service PHP-FPM tab. The unchanged default index list also tries index.php last when PHP-FPM for .php is enabled. Apache SetHandler proxy socket syntax is intentionally not accepted.</p>
<h3 data-i18n="webServiceHtaccessDocsReloadTitle">Loading and limits</h3>
<p data-i18n="webServiceHtaccessDocsReload">Files are read and compiled on Validate, save and apply.
RustProxy does not parse .htaccess per request. Re-apply after changing a file. The scan is bounded to
128 files, depth 16, 128 KiB per file and 1 MiB total.</p>
<h3 data-i18n="webServiceHtaccessDocsUnsupportedTitle">Not Apache-complete</h3>
<p data-i18n="webServiceHtaccessDocsUnsupported">ErrorDocument, SetEnvIf, Redirect/RedirectMatch and
FallbackResource are not implemented. Order/Allow/Deny with all, IP or CIDR (IPv4/IPv6) are supported
and enforced. General Files/FilesMatch, unsupported authentication/authorization and hostname access
directives, non-PHP handlers and SetHandler are rejected even with Strict off: ignoring them may expose
protected content. .htaccess/.htpasswd are never served over HTTP. Other unsupported non-security
directives are logged and skipped with Strict off.</p>
<p data-i18n="webServiceHtaccessDocsUnsupported">Only local ErrorDocument URLs are supported (GET/HEAD); custom literal/external error documents, SetEnvIf, FallbackResource, Options FollowSymlinks and Options MultiViews are not implemented. Order/Allow/Deny with all, IP or CIDR (IPv4/IPv6) and Files/FilesMatch access rules are enforced. Unsupported authentication/authorization, host-based access and handler rules still fail closed, even with Strict off. Other unsupported non-security directives are logged and skipped with Strict off. Re-apply the Web Service after .htaccess changes.</p>
<p class="fine" data-i18n="webServiceHtaccessDocsSecurity">Vhost/location ACL, authentication, error pages
and response rules still remain authoritative. .htaccess cannot escape the document root, select an
arbitrary FastCGI socket or override protected framing headers.</p>