<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[AdminsForum - aaPanel Websites & Web Servers Guides]]></title>
		<link>https://adminsforum.com/</link>
		<description><![CDATA[AdminsForum - https://adminsforum.com]]></description>
		<pubDate>Sun, 29 Nov 2026 08:44:13 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[How to update aaPanel NGINX and verify the running version after NGINX2Root]]></title>
			<link>https://adminsforum.com/Thread-guide-how-to-update-aapanel-nginx-and-verify-the-running-version-after-nginx2root</link>
			<pubDate>Tue, 24 Nov 2026 18:04:08 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-how-to-update-aapanel-nginx-and-verify-the-running-version-after-nginx2root</guid>
			<description><![CDATA[NGINX2Root affects several NGINX configurations, including servers that accept HTTP/2 connections. The November fixes first appeared in upstream mainline 1.31.9 and stable 1.30.7. This walkthrough follows an aaPanel-managed mainline installation. If your distribution supplies the running binary, use its security advisory and package revision instead.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the web server that handles your sites</span><br />
Open App Store → Installed and find the Nginx row. The demo started on 1.31.7. The Update control on the aaPanel home screen updates the panel itself. Use the Nginx row to update the website server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Back up and test before updating</span><br />
Keep a private backup of your NGINX configuration, virtual hosts, current binary and any custom modules. Record module and build options, and have a working restore method. On a typical aaPanel installation, test the current configuration with:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -t</code></div></div>Resolve configuration errors before continuing. Schedule the update when a brief interruption is acceptable.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Update and follow the task</span><br />
In App Store → Installed, select Update beside Nginx. Confirm the target branch and release, then follow the build in the panel task list. A source build can spend several minutes compiling dependencies while the old server continues answering requests. Leave the running task to finish.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Verify the process, configuration and website</span><br />
Run the checks below in Terminal. The first command shows the version installed on disk. For the process check, use the PID of the website NGINX master from the process list. aaPanel can also run its own separate web server.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -v
ps -C nginx -o pid,args
readlink /proc/PID/exe
/proc/PID/exe -v
/www/server/nginx/sbin/nginx -t</code></div></div>Replace PID with the numeric process ID. Check that the executable path belongs to the website server and the running version matches the intended update. Visit a normal HTTPS page on each important site and check its content, certificate and error log. If the tests fail, use the backup and your maintenance procedure before returning the site to service.<br />
<br />
Upstream advisory: <a href="https://nginx.org/en/security_advisories.html" target="_blank" rel="noopener" class="mycode_url">https://nginx.org/en/security_advisories.html</a><br />
<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=733" target="_blank" title="">pasted-image-1795514430347-2.jpg</a> (Size: 7.67 KB / Downloads: 21)
<!-- end: postbit_attachments_attachment --><br />
<br />
Demo result, 24 November 2026. The previous screenshot shows the starting version. After the task completed, both the installed binary and running website master reported 1.31.10. The configuration test passed and the blog homepage returned HTTP 200 over HTTPS.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=734" target="_blank" title="">pasted-image-1795514640028-3.jpg</a> (Size: 29.83 KB / Downloads: 21)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[NGINX2Root affects several NGINX configurations, including servers that accept HTTP/2 connections. The November fixes first appeared in upstream mainline 1.31.9 and stable 1.30.7. This walkthrough follows an aaPanel-managed mainline installation. If your distribution supplies the running binary, use its security advisory and package revision instead.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the web server that handles your sites</span><br />
Open App Store → Installed and find the Nginx row. The demo started on 1.31.7. The Update control on the aaPanel home screen updates the panel itself. Use the Nginx row to update the website server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Back up and test before updating</span><br />
Keep a private backup of your NGINX configuration, virtual hosts, current binary and any custom modules. Record module and build options, and have a working restore method. On a typical aaPanel installation, test the current configuration with:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -t</code></div></div>Resolve configuration errors before continuing. Schedule the update when a brief interruption is acceptable.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Update and follow the task</span><br />
In App Store → Installed, select Update beside Nginx. Confirm the target branch and release, then follow the build in the panel task list. A source build can spend several minutes compiling dependencies while the old server continues answering requests. Leave the running task to finish.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Verify the process, configuration and website</span><br />
Run the checks below in Terminal. The first command shows the version installed on disk. For the process check, use the PID of the website NGINX master from the process list. aaPanel can also run its own separate web server.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -v
ps -C nginx -o pid,args
readlink /proc/PID/exe
/proc/PID/exe -v
/www/server/nginx/sbin/nginx -t</code></div></div>Replace PID with the numeric process ID. Check that the executable path belongs to the website server and the running version matches the intended update. Visit a normal HTTPS page on each important site and check its content, certificate and error log. If the tests fail, use the backup and your maintenance procedure before returning the site to service.<br />
<br />
Upstream advisory: <a href="https://nginx.org/en/security_advisories.html" target="_blank" rel="noopener" class="mycode_url">https://nginx.org/en/security_advisories.html</a><br />
<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=733" target="_blank" title="">pasted-image-1795514430347-2.jpg</a> (Size: 7.67 KB / Downloads: 21)
<!-- end: postbit_attachments_attachment --><br />
<br />
Demo result, 24 November 2026. The previous screenshot shows the starting version. After the task completed, both the installed binary and running website master reported 1.31.10. The configuration test passed and the blog homepage returned HTTP 200 over HTTPS.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=734" target="_blank" title="">pasted-image-1795514640028-3.jpg</a> (Size: 29.83 KB / Downloads: 21)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Apache CVE-2026-119618: update aaPanel-managed Apache to 2.4.71]]></title>
			<link>https://adminsforum.com/Thread-guide-apache-cve-2026-119618-update-aapanel-managed-apache-to-2-4-71</link>
			<pubDate>Sat, 14 Nov 2026 15:38:22 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-apache-cve-2026-119618-update-aapanel-managed-apache-to-2-4-71</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Apache CVE-2026-119618: update aaPanel-managed Apache to 2.4.71</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">Checked against the Apache and aaPanel advisories on 14 November 2026. This is an upgrade guide, not a statement that any particular server has been exploited.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">What needs attention?</span><br />
<br />
Apache rates CVE-2026-119618 critical. A concurrency defect in mod_http2 can corrupt memory and allow remote code execution. Apache HTTP Server 2.4.55 through 2.4.70 is affected; 2.4.71 contains the fix. The separately distributed mod_h2 releases 2.0.8 through 2.0.42 are also listed as affected.<br />
<br />
aaPanel's notice identifies Apache HTTP/2 (h2 or h2c) as the relevant exposure. Administrators should update affected installations promptly. Review Apache's advisory for your exact build; distribution packages may contain vendor-backported fixes even when their version number looks older.<br />
<br />
<a href="https://httpd.apache.org/security/vulnerabilities_24.html" target="_blank" rel="noopener" class="mycode_url">Apache's official security advisory</a><br />
<a href="https://www.aapanel.com/forum/d/26327-critical-apache-http-server-flaw-cve-2026-119618-upgrade-to-2471" target="_blank" rel="noopener" class="mycode_url">aaPanel's upgrade notice</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the Apache instance you actually use</span><br />
<br />
Check aaPanel's App Store and your site's web-server configuration. On a typical aaPanel Apache installation, these are read-only inspection commands:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/apache/bin/httpd -v
/www/server/apache/bin/httpd -M
/www/server/apache/bin/httpd -S
/www/server/apache/bin/httpd -t</code></div></div><br />
Adjust the path if your installation differs. The options show the installed version, loaded modules, virtual hosts and configuration syntax. Look for http2_module in the module output, then inspect the effective configuration for Protocols directives and h2/h2c listeners. A loaded module alone does not establish that a particular listener accepts HTTP/2.<br />
<br />
If Nginx or a CDN handles public HTTP/2, check the protocol used on the separate connection to Apache too. Frontend HTTP/2 does not automatically mean the backend uses Apache HTTP/2. Likewise, a public HTTP/1.1 response does not establish that every Apache listener is safe.<br />
<br />
Do not use the HTTP Server header, an OpenSSL version, or the browser's HTTP protocol label as a substitute for checking the actual Apache build and configuration.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Prepare a recovery plan</span><br />
<br />
Choose a short maintenance window and finish any unrelated server updates first. Save a recoverable server snapshot or backup, current Apache configuration, virtual hosts, certificate configuration and custom modules. Keep recovery access independent of the website.<br />
<br />
Record the current versions and confirm that important sites work before starting. If the server already has database errors, overloaded storage or failed services, document those separately so they are not mistaken for a new Apache regression.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Update through aaPanel</span><br />
<br />
<ol type="1" class="mycode_list"><li>Open <span style="font-weight: bold;" class="mycode_b">App Store</span> in aaPanel.<br />
</li>
<li>Use <span style="font-weight: bold;" class="mycode_b">Update App List</span> in the upper-right area.<br />
</li>
<li>Locate <span style="font-weight: bold;" class="mycode_b">Apache</span> and use its upgrade/update control.<br />
</li>
<li>Choose <span style="font-weight: bold;" class="mycode_b">2.4.71 or a newer supported release that includes this fix</span>.<br />
</li>
<li>Let the installation task finish and inspect its result/log. Avoid starting another update or repeatedly clicking the service start button while it is working.<br />
</li>
</ol>
<br />
The exact labels can differ by panel release. If a fixed build is unavailable, ask aaPanel support rather than replacing a panel-managed Apache with an unrelated operating-system package. Replacing it blindly can leave two installations or break the panel's paths and modules.<br />
<br />
Updating aaPanel itself is not proof that its separately installed Apache component was updated.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Panel example from our demo lab</span><br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=712" target="_blank" title="">01-demo-apache-app-store.jpg</a> (Size: 146.48 KB / Downloads: 27)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Before upgrade: Apache 2.4.69 in the demo App Store. Use Update App List, then the Update link in the Apache row. This screenshot shows the update entry point before installation.</span><br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=723" target="_blank" title="">pasted-image-1794673336907-2.jpg</a> (Size: 145.64 KB / Downloads: 20)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">After upgrade: the same demo panel shows Apache 2.4.71. On 14 November 2026 we separately confirmed that the installed 2.4.71 executable was running and the configuration test reported Syntax OK. The panel task queue had finished. This demonstrates our lab result; repeat the checks below on your own server.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Verify the upgrade</span><br />
<br />
Repeat the version, module and syntax checks from step 1. A successful configuration test should report Syntax OK. Resolve errors before requesting a restart.<br />
<br />
Use aaPanel's supported Apache service controls to ensure the new executable is running. A version command reads the installed binary; it does not prove an old running process has been replaced. Do not create a second manual Apache instance alongside the panel-managed service.<br />
<br />
Then check:<br />
<ul class="mycode_list"><li>Apache's service/task status and recent error log.<br />
</li>
<li>Each important hostname over certificate-verified HTTPS.<br />
</li>
<li>Login, a normal dynamic page, redirects and any important application workflow.<br />
</li>
<li>The complete frontend-to-backend route if you use Nginx, Varnish or another proxy.<br />
</li>
</ul>
<br />
HTTP 200 is a useful availability check, but inspect the page too: an error or challenge page can also return 200. These checks establish update health; they are not an exploit test or proof that the server was never compromised.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Temporary mitigation if patching is delayed</span><br />
<br />
aaPanel recommends removing h2 and h2c from Apache's Protocols settings while retaining HTTP/1.1. For an affected listener, the resulting directive is:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>Protocols http/1.1</code></div></div><br />
Back up the configuration first. Apply the restriction to the effective server and affected virtual hosts; do not assume one global edit overrides every virtual-host setting. Review internal/direct listeners as well as the public proxy route. Test the configuration, then apply it through the supported service controls and verify that affected Apache listeners no longer accept HTTP/2.<br />
<br />
Changing only the CDN or Nginx frontend does not necessarily remove Apache backend exposure. This mitigation can change protocol performance and is a temporary alternative while arranging the fixed build. After installing and verifying a fixed release, re-enable HTTP/2 only where you intend to use it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">If an update fails</span><br />
<br />
Keep the task result and first relevant Apache error, check configuration/module compatibility, and use your recovery plan or aaPanel support. Do not repeatedly start services or restore an affected build with HTTP/2 exposed. Never post passwords, private keys or an unredacted configuration backup in a support thread.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span><br />
<ul class="mycode_list"><li><a href="https://httpd.apache.org/security/vulnerabilities_24.html" target="_blank" rel="noopener" class="mycode_url">Apache HTTP Server 2.4 security advisories</a><br />
</li>
<li><a href="https://www.aapanel.com/forum/d/26327-critical-apache-http-server-flaw-cve-2026-119618-upgrade-to-2471" target="_blank" rel="noopener" class="mycode_url">aaPanel: critical Apache flaw and upgrade to 2.4.71</a><br />
</li>
<li><a href="https://httpd.apache.org/docs/2.4/programs/httpd.html" target="_blank" rel="noopener" class="mycode_url">Apache httpd command-line options</a><br />
</li>
<li><a href="https://httpd.apache.org/docs/2.4/mod/core.html#protocols" target="_blank" rel="noopener" class="mycode_url">Apache Protocols directive</a><br />
</li>
</ul>
<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=724" target="_blank" title="">03-demo-apache-2471.jpg</a> (Size: 145.64 KB / Downloads: 11)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Apache CVE-2026-119618: update aaPanel-managed Apache to 2.4.71</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">Checked against the Apache and aaPanel advisories on 14 November 2026. This is an upgrade guide, not a statement that any particular server has been exploited.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">What needs attention?</span><br />
<br />
Apache rates CVE-2026-119618 critical. A concurrency defect in mod_http2 can corrupt memory and allow remote code execution. Apache HTTP Server 2.4.55 through 2.4.70 is affected; 2.4.71 contains the fix. The separately distributed mod_h2 releases 2.0.8 through 2.0.42 are also listed as affected.<br />
<br />
aaPanel's notice identifies Apache HTTP/2 (h2 or h2c) as the relevant exposure. Administrators should update affected installations promptly. Review Apache's advisory for your exact build; distribution packages may contain vendor-backported fixes even when their version number looks older.<br />
<br />
<a href="https://httpd.apache.org/security/vulnerabilities_24.html" target="_blank" rel="noopener" class="mycode_url">Apache's official security advisory</a><br />
<a href="https://www.aapanel.com/forum/d/26327-critical-apache-http-server-flaw-cve-2026-119618-upgrade-to-2471" target="_blank" rel="noopener" class="mycode_url">aaPanel's upgrade notice</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the Apache instance you actually use</span><br />
<br />
Check aaPanel's App Store and your site's web-server configuration. On a typical aaPanel Apache installation, these are read-only inspection commands:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/apache/bin/httpd -v
/www/server/apache/bin/httpd -M
/www/server/apache/bin/httpd -S
/www/server/apache/bin/httpd -t</code></div></div><br />
Adjust the path if your installation differs. The options show the installed version, loaded modules, virtual hosts and configuration syntax. Look for http2_module in the module output, then inspect the effective configuration for Protocols directives and h2/h2c listeners. A loaded module alone does not establish that a particular listener accepts HTTP/2.<br />
<br />
If Nginx or a CDN handles public HTTP/2, check the protocol used on the separate connection to Apache too. Frontend HTTP/2 does not automatically mean the backend uses Apache HTTP/2. Likewise, a public HTTP/1.1 response does not establish that every Apache listener is safe.<br />
<br />
Do not use the HTTP Server header, an OpenSSL version, or the browser's HTTP protocol label as a substitute for checking the actual Apache build and configuration.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Prepare a recovery plan</span><br />
<br />
Choose a short maintenance window and finish any unrelated server updates first. Save a recoverable server snapshot or backup, current Apache configuration, virtual hosts, certificate configuration and custom modules. Keep recovery access independent of the website.<br />
<br />
Record the current versions and confirm that important sites work before starting. If the server already has database errors, overloaded storage or failed services, document those separately so they are not mistaken for a new Apache regression.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Update through aaPanel</span><br />
<br />
<ol type="1" class="mycode_list"><li>Open <span style="font-weight: bold;" class="mycode_b">App Store</span> in aaPanel.<br />
</li>
<li>Use <span style="font-weight: bold;" class="mycode_b">Update App List</span> in the upper-right area.<br />
</li>
<li>Locate <span style="font-weight: bold;" class="mycode_b">Apache</span> and use its upgrade/update control.<br />
</li>
<li>Choose <span style="font-weight: bold;" class="mycode_b">2.4.71 or a newer supported release that includes this fix</span>.<br />
</li>
<li>Let the installation task finish and inspect its result/log. Avoid starting another update or repeatedly clicking the service start button while it is working.<br />
</li>
</ol>
<br />
The exact labels can differ by panel release. If a fixed build is unavailable, ask aaPanel support rather than replacing a panel-managed Apache with an unrelated operating-system package. Replacing it blindly can leave two installations or break the panel's paths and modules.<br />
<br />
Updating aaPanel itself is not proof that its separately installed Apache component was updated.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Panel example from our demo lab</span><br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=712" target="_blank" title="">01-demo-apache-app-store.jpg</a> (Size: 146.48 KB / Downloads: 27)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Before upgrade: Apache 2.4.69 in the demo App Store. Use Update App List, then the Update link in the Apache row. This screenshot shows the update entry point before installation.</span><br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=723" target="_blank" title="">pasted-image-1794673336907-2.jpg</a> (Size: 145.64 KB / Downloads: 20)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">After upgrade: the same demo panel shows Apache 2.4.71. On 14 November 2026 we separately confirmed that the installed 2.4.71 executable was running and the configuration test reported Syntax OK. The panel task queue had finished. This demonstrates our lab result; repeat the checks below on your own server.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Verify the upgrade</span><br />
<br />
Repeat the version, module and syntax checks from step 1. A successful configuration test should report Syntax OK. Resolve errors before requesting a restart.<br />
<br />
Use aaPanel's supported Apache service controls to ensure the new executable is running. A version command reads the installed binary; it does not prove an old running process has been replaced. Do not create a second manual Apache instance alongside the panel-managed service.<br />
<br />
Then check:<br />
<ul class="mycode_list"><li>Apache's service/task status and recent error log.<br />
</li>
<li>Each important hostname over certificate-verified HTTPS.<br />
</li>
<li>Login, a normal dynamic page, redirects and any important application workflow.<br />
</li>
<li>The complete frontend-to-backend route if you use Nginx, Varnish or another proxy.<br />
</li>
</ul>
<br />
HTTP 200 is a useful availability check, but inspect the page too: an error or challenge page can also return 200. These checks establish update health; they are not an exploit test or proof that the server was never compromised.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Temporary mitigation if patching is delayed</span><br />
<br />
aaPanel recommends removing h2 and h2c from Apache's Protocols settings while retaining HTTP/1.1. For an affected listener, the resulting directive is:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>Protocols http/1.1</code></div></div><br />
Back up the configuration first. Apply the restriction to the effective server and affected virtual hosts; do not assume one global edit overrides every virtual-host setting. Review internal/direct listeners as well as the public proxy route. Test the configuration, then apply it through the supported service controls and verify that affected Apache listeners no longer accept HTTP/2.<br />
<br />
Changing only the CDN or Nginx frontend does not necessarily remove Apache backend exposure. This mitigation can change protocol performance and is a temporary alternative while arranging the fixed build. After installing and verifying a fixed release, re-enable HTTP/2 only where you intend to use it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">If an update fails</span><br />
<br />
Keep the task result and first relevant Apache error, check configuration/module compatibility, and use your recovery plan or aaPanel support. Do not repeatedly start services or restore an affected build with HTTP/2 exposed. Never post passwords, private keys or an unredacted configuration backup in a support thread.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span><br />
<ul class="mycode_list"><li><a href="https://httpd.apache.org/security/vulnerabilities_24.html" target="_blank" rel="noopener" class="mycode_url">Apache HTTP Server 2.4 security advisories</a><br />
</li>
<li><a href="https://www.aapanel.com/forum/d/26327-critical-apache-http-server-flaw-cve-2026-119618-upgrade-to-2471" target="_blank" rel="noopener" class="mycode_url">aaPanel: critical Apache flaw and upgrade to 2.4.71</a><br />
</li>
<li><a href="https://httpd.apache.org/docs/2.4/programs/httpd.html" target="_blank" rel="noopener" class="mycode_url">Apache httpd command-line options</a><br />
</li>
<li><a href="https://httpd.apache.org/docs/2.4/mod/core.html#protocols" target="_blank" rel="noopener" class="mycode_url">Apache Protocols directive</a><br />
</li>
</ul>
<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=724" target="_blank" title="">03-demo-apache-2471.jpg</a> (Size: 145.64 KB / Downloads: 11)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to Install an NGINX-Based Media Streaming Server]]></title>
			<link>https://adminsforum.com/Thread-guide-how-to-install-an-nginx-based-media-streaming-server</link>
			<pubDate>Mon, 19 Oct 2026 23:03:39 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=3">ALEX</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-how-to-install-an-nginx-based-media-streaming-server</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="GIF Image" border="0" alt=".gif" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=392" target="_blank" title="">nginx-rtmp-media-server-adminsforum.gif</a> (Size: 79.48 KB / Downloads: 41)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-weight: bold;" class="mycode_b">You can run an NGINX-based RTMP/HLS media server on an aaPanel VPS without replacing the Nginx binary that serves your websites.</span> This guide builds a separate streaming process, publishes a generated test video and verifies the HLS output. It is a localhost lab installation, not an Internet-facing streaming service.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">What you will build</span><br />
FFmpeg sends H.264 video and AAC audio to an RTMP application called live. The module creates a changing .m3u8 playlist and .ts video segments. An HTTP listener serves those files to an HLS-capable player. RTMP is the ingest connection; HLS is the playback format. An ordinary browser does not play an rtmp:// URL as an HTML video.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested environment</span><br />
Ubuntu 22.04, aaPanel server, Nginx 1.30.6 compiled separately, nginx-rtmp-module commit 6c7719d0ba32e00b563ec70bd43dad11960fa9c4 and FFmpeg 4.4.2. The existing aaPanel Nginx was 1.30.5. We also checked module compilation against 1.30.5. No aaPanel Nginx binary was overwritten.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Check prerequisites and ports</span><br />
Use a disposable Linux lab with SSH/root access, a backup, free disk space and a compiler. A domain is not needed for this localhost test. Commands below assume a root shell; do not paste a root prompt as part of the command.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>id
cat /etc/os-release
df -h /
/www/server/nginx/sbin/nginx -V 2&gt;&amp;1
ss -lntH '( sport = :11935 or sport = :18085 )'
getent passwd www</code></div></div>The port check should print no listeners. Stop if either port is occupied; do not kill an unfamiliar service. This example uses aaPanel's existing www account. Confirm it exists before proceeding.<br />
<br />
Install build dependencies from Ubuntu's repositories if missing:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>apt-get update
apt-get install --no-install-recommends build-essential libpcre3-dev libssl-dev zlib1g-dev git curl ffmpeg</code></div></div>Build tools and headers were already present in our lab; FFmpeg was added for the test. Review the package manager's proposed changes before accepting them.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Download and pin the source</span><br />
Keep these variables in the same SSH shell. The dated names identify this example's isolated directories; use fresh empty directories for your own lab.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>RTMP_WORK=/root/adminsforum-rtmp-review-20261019
RTMP_PREFIX=/opt/adminsforum-rtmp-lab-20261019
mkdir -p "&#36;RTMP_WORK"
cd "&#36;RTMP_WORK"
git clone https://github.com/arut/nginx-rtmp-module.git
git -C nginx-rtmp-module checkout --detach 6c7719d0ba32e00b563ec70bd43dad11960fa9c4
curl -fL https://nginx.org/download/nginx-1.30.6.tar.gz -o nginx-1.30.6.tar.gz
sha256sum nginx-1.30.6.tar.gz
tar -xzf nginx-1.30.6.tar.gz</code></div></div>Record the source version, commit and download hash with your change notes. The hash records the downloaded bytes; it is not an independent signature verification. These versions reproduce our test; check current security releases before deploying publicly.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Fix the configure-directory mistake and build</span><br />
The older aaPanel forum recipe ends its prefix script with ./configure after changing only to /www/server/nginx/src. That is not a complete Nginx build workflow. The RTMP repository supplies a config file, not its own configure executable. Run Nginx's configure from the extracted Nginx source directory and pass the module's absolute path:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>cd "&#36;RTMP_WORK/nginx-1.30.6"
./configure --prefix="&#36;RTMP_PREFIX" --with-http_ssl_module --add-module="&#36;RTMP_WORK/nginx-rtmp-module"
make -j2
./objs/nginx -V 2&gt;&amp;1</code></div></div>Stop on a configure or make error. The version output should include --add-module followed by the RTMP source path. This uses a static add-module build. It does not create a module .so to load into your existing aaPanel Nginx.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Do not run make install against /www/server/nginx.</span> Copy only the newly built binary into the separate prefix:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>install -d -m 0755 "&#36;RTMP_PREFIX/sbin" "&#36;RTMP_PREFIX/conf"
install -m 0755 objs/nginx "&#36;RTMP_PREFIX/sbin/nginx"
for d in logs hls client_body_temp proxy_temp fastcgi_temp uwsgi_temp scgi_temp; do
  install -d -o www -g www -m 0750 "&#36;RTMP_PREFIX/&#36;d"
done</code></div></div>Keep the binary and configuration owned by root. Only runtime directories need to be writable by www. The process will run as www rather than a root streaming worker.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Create the isolated streaming configuration</span><br />
Save the following complete file as /opt/adminsforum-rtmp-lab-20261019/conf/nginx.conf, for example with nano. If you chose another prefix, update both absolute hls paths too. Keep the rtmp block at the top level, alongside http; do not paste it into an aaPanel website's server block.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>worker_processes 1;
pid logs/nginx.pid;
error_log logs/error.log info;
events { worker_connections 128; }
rtmp {
 server {
  listen 127.0.0.1:11935;
  application live {
   live on;
   record off;
   allow publish 127.0.0.1;
   deny publish all;
   allow play 127.0.0.1;
   deny play all;
   hls on;
   hls_path /opt/adminsforum-rtmp-lab-20261019/hls;
   hls_fragment 2s;
   hls_playlist_length 8s;
  }
  application denied {
   live on;
   deny publish all;
   deny play all;
  }
 }
}
http {
 access_log logs/access.log;
 default_type application/octet-stream;
 server {
  listen 127.0.0.1:18085;
  server_name localhost;
  location /hls/ {
   alias /opt/adminsforum-rtmp-lab-20261019/hls/;
   types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; }
   add_header Cache-Control "no-store" always;
   autoindex off;
  }
  location = /stat { rtmp_stat all; }
  location / { return 404; }
 }
}</code></div></div>Port 11935 is RTMP ingest; 18085 serves HLS/statistics. Both bind to 127.0.0.1. The live application permits localhost publishing/playback only. The denied application deliberately rejects publishing for a negative test. No external command hooks or recording are enabled.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Validate, start and inspect</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>runuser -u www -- "&#36;RTMP_PREFIX/sbin/nginx" -p "&#36;RTMP_PREFIX/" -c conf/nginx.conf -t
runuser -u www -- "&#36;RTMP_PREFIX/sbin/nginx" -p "&#36;RTMP_PREFIX/" -c conf/nginx.conf
ss -lntp | grep -E '11935|18085'
curl -sS http://127.0.0.1:18085/stat</code></div></div>Run the start command only after the configuration test succeeds. Confirm the listeners say 127.0.0.1, not 0.0.0.0 or [::]. The XML statistics response should identify nginx_rtmp_version and the live application. An idle application has no publisher yet.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Publish a short synthetic stream</span><br />
This generates a small test picture and tone without using copyrighted sample media or a camera. Leave it running while you inspect the output from a second SSH session:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ffmpeg -hide_banner -loglevel error -re   -f lavfi -i testsrc2=size=320x180:rate=10   -f lavfi -i sine=frequency=440:sample_rate=44100   -t 30 -c:v libx264 -preset ultrafast -tune zerolatency   -threads 1 -pix_fmt yuv420p -g 20   -c:a aac -b:a 64k -f flv   rtmp://127.0.0.1:11935/live/test</code></div></div>-re paces the generated input; -t limits the test; libx264/AAC select the video/audio encoders. Ten frames per second with -g 20 gives a two-second keyframe interval for this fixture. The URL selects application live and stream name test. This is a modest functional test, not a capacity benchmark.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify the playlist and video segments</span><br />
While the publisher is active, wait for several seconds and run:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -i http://127.0.0.1:18085/hls/test.m3u8
ls -lh /opt/adminsforum-rtmp-lab-20261019/hls/
curl -sS http://127.0.0.1:18085/stat</code></div></div>Expect HTTP 200, Content-Type: application/vnd.apple.mpegurl, Cache-Control: no-store and a playlist beginning #EXTM3U. Look for an actual segment name such as test-0.ts. Download the segment name currently listed, rather than assuming an old segment is still present:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -f http://127.0.0.1:18085/hls/test-0.ts -o /tmp/af-stream-test.ts
ffprobe -v error -show_entries stream=codec_name,codec_type,width,height -of json /tmp/af-stream-test.ts
ffmpeg -v error -i /tmp/af-stream-test.ts -f null -</code></div></div>Replace test-0.ts if the current playlist lists another segment. Our lab returned a 99,640-byte segment, H.264 320x180 video and AAC audio; decoding exited successfully with no decoder errors. The separate denied application rejected a test publisher. An HLS playlist can return 404 until the first segment exists, and old live segments may disappear after the publisher stops.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Access the private test from your own computer</span><br />
For a player test, an SSH local tunnel can forward the localhost HTTP listener:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ssh -N -L 18085:127.0.0.1:18085 YOUR_SSH_USER@YOUR_VPS_IP</code></div></div>Keep the tunnel open and use <a href="http://127.0.0.1:18085/hls/test.m3u8" target="_blank" rel="noopener" class="mycode_url">http://127.0.0.1:18085/hls/test.m3u8</a> in an HLS-capable player while publishing. For OBS ingest, a second tunnel can forward port 11935; the server field is rtmp://127.0.0.1:11935/live and stream key is test. These desktop-player/OBS steps are follow-up instructions, not completed tests in our evidence. We verified the generated HLS segment using FFmpeg on the server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. Troubleshoot by symptom</span><ul class="mycode_list"><li>No such file ./configure: enter the extracted Nginx source directory; do not execute configure inside the RTMP repository or a generic parent src directory.<br />
</li>
<li>Unknown directive rtmp: verify you are using the newly built binary and that -V shows the module. The ordinary aaPanel binary is a different executable.<br />
</li>
<li>rtmp directive is not allowed here: move the block to the main configuration level, outside http/server/location.<br />
</li>
<li>Address already in use: inspect ss output and choose unused lab ports; do not stop the website server to free port 80.<br />
</li>
<li>HLS 404: confirm the publisher is active, its application/name match live/test, hls is enabled, and www can write the configured hls directory.<br />
</li>
<li>Permission denied: inspect logs/error.log and directory permissions; avoid chmod 777.<br />
</li>
<li>Audio/video missing: inspect FFmpeg output, keyframe spacing and actual segment codecs instead of assuming a successful connection means playable media.<br />
</li>
<li>Works locally but not remotely: localhost binding is intentional. A public streaming deployment needs its own access-control, HTTPS and firewall design.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">10. Stop and roll back this lab</span><br />
Stop the publisher with Ctrl+C, then stop only this instance:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>runuser -u www -- /opt/adminsforum-rtmp-lab-20261019/sbin/nginx   -p /opt/adminsforum-rtmp-lab-20261019/ -c conf/nginx.conf -s quit
ss -lntH '( sport = :11935 or sport = :18085 )'
/www/server/nginx/sbin/nginx -t</code></div></div>The dedicated ports should disappear; the aaPanel website configuration should still validate. We tested this stop operation. Keep the isolated files/logs for review; no shared website configuration needs restoring. The example does not install a boot service, so it does not auto-start after reboot.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">What is still needed for public broadcasting?</span><br />
A public deployment needs publisher authentication, protected statistics/control endpoints, valid playback HTTPS, monitored disk/bandwidth usage, a supervised service and realistic load tests. A stream name alone is not authentication. This article deliberately keeps the test private; it does not claim public OBS access, browser playback, CDN delivery, RTMPS or a production security audit.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">About aaPanel's Add Module screen</span><br />
The native panel approach recompiles its managed Nginx and must preserve all existing build options and update behavior. We did not perform that replacement on this working server. The corrected principle is to prepare the RTMP source in the prefix script, provide --add-module with its absolute path, and let the Nginx build run configure. Do not copy the older recipe's stray ./configure into that prefix script. A native-panel rebuild deserves a separate disposable-server test.<br />
<br />
References: <a href="https://www.aapanel.com/forum/d/2804-how-to-install-nginx-based-media-streaming-server" target="_blank" rel="noopener" class="mycode_url">original aaPanel discussion</a>, <a href="https://github.com/arut/nginx-rtmp-module" target="_blank" rel="noopener" class="mycode_url">module source</a>, <a href="https://nginx.org/en/download.html" target="_blank" rel="noopener" class="mycode_url">official Nginx downloads</a>. All diagrams and test media in this article are original AdminsForum lab material.]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="GIF Image" border="0" alt=".gif" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=392" target="_blank" title="">nginx-rtmp-media-server-adminsforum.gif</a> (Size: 79.48 KB / Downloads: 41)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-weight: bold;" class="mycode_b">You can run an NGINX-based RTMP/HLS media server on an aaPanel VPS without replacing the Nginx binary that serves your websites.</span> This guide builds a separate streaming process, publishes a generated test video and verifies the HLS output. It is a localhost lab installation, not an Internet-facing streaming service.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">What you will build</span><br />
FFmpeg sends H.264 video and AAC audio to an RTMP application called live. The module creates a changing .m3u8 playlist and .ts video segments. An HTTP listener serves those files to an HLS-capable player. RTMP is the ingest connection; HLS is the playback format. An ordinary browser does not play an rtmp:// URL as an HTML video.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested environment</span><br />
Ubuntu 22.04, aaPanel server, Nginx 1.30.6 compiled separately, nginx-rtmp-module commit 6c7719d0ba32e00b563ec70bd43dad11960fa9c4 and FFmpeg 4.4.2. The existing aaPanel Nginx was 1.30.5. We also checked module compilation against 1.30.5. No aaPanel Nginx binary was overwritten.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Check prerequisites and ports</span><br />
Use a disposable Linux lab with SSH/root access, a backup, free disk space and a compiler. A domain is not needed for this localhost test. Commands below assume a root shell; do not paste a root prompt as part of the command.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>id
cat /etc/os-release
df -h /
/www/server/nginx/sbin/nginx -V 2&gt;&amp;1
ss -lntH '( sport = :11935 or sport = :18085 )'
getent passwd www</code></div></div>The port check should print no listeners. Stop if either port is occupied; do not kill an unfamiliar service. This example uses aaPanel's existing www account. Confirm it exists before proceeding.<br />
<br />
Install build dependencies from Ubuntu's repositories if missing:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>apt-get update
apt-get install --no-install-recommends build-essential libpcre3-dev libssl-dev zlib1g-dev git curl ffmpeg</code></div></div>Build tools and headers were already present in our lab; FFmpeg was added for the test. Review the package manager's proposed changes before accepting them.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Download and pin the source</span><br />
Keep these variables in the same SSH shell. The dated names identify this example's isolated directories; use fresh empty directories for your own lab.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>RTMP_WORK=/root/adminsforum-rtmp-review-20261019
RTMP_PREFIX=/opt/adminsforum-rtmp-lab-20261019
mkdir -p "&#36;RTMP_WORK"
cd "&#36;RTMP_WORK"
git clone https://github.com/arut/nginx-rtmp-module.git
git -C nginx-rtmp-module checkout --detach 6c7719d0ba32e00b563ec70bd43dad11960fa9c4
curl -fL https://nginx.org/download/nginx-1.30.6.tar.gz -o nginx-1.30.6.tar.gz
sha256sum nginx-1.30.6.tar.gz
tar -xzf nginx-1.30.6.tar.gz</code></div></div>Record the source version, commit and download hash with your change notes. The hash records the downloaded bytes; it is not an independent signature verification. These versions reproduce our test; check current security releases before deploying publicly.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Fix the configure-directory mistake and build</span><br />
The older aaPanel forum recipe ends its prefix script with ./configure after changing only to /www/server/nginx/src. That is not a complete Nginx build workflow. The RTMP repository supplies a config file, not its own configure executable. Run Nginx's configure from the extracted Nginx source directory and pass the module's absolute path:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>cd "&#36;RTMP_WORK/nginx-1.30.6"
./configure --prefix="&#36;RTMP_PREFIX" --with-http_ssl_module --add-module="&#36;RTMP_WORK/nginx-rtmp-module"
make -j2
./objs/nginx -V 2&gt;&amp;1</code></div></div>Stop on a configure or make error. The version output should include --add-module followed by the RTMP source path. This uses a static add-module build. It does not create a module .so to load into your existing aaPanel Nginx.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Do not run make install against /www/server/nginx.</span> Copy only the newly built binary into the separate prefix:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>install -d -m 0755 "&#36;RTMP_PREFIX/sbin" "&#36;RTMP_PREFIX/conf"
install -m 0755 objs/nginx "&#36;RTMP_PREFIX/sbin/nginx"
for d in logs hls client_body_temp proxy_temp fastcgi_temp uwsgi_temp scgi_temp; do
  install -d -o www -g www -m 0750 "&#36;RTMP_PREFIX/&#36;d"
done</code></div></div>Keep the binary and configuration owned by root. Only runtime directories need to be writable by www. The process will run as www rather than a root streaming worker.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Create the isolated streaming configuration</span><br />
Save the following complete file as /opt/adminsforum-rtmp-lab-20261019/conf/nginx.conf, for example with nano. If you chose another prefix, update both absolute hls paths too. Keep the rtmp block at the top level, alongside http; do not paste it into an aaPanel website's server block.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>worker_processes 1;
pid logs/nginx.pid;
error_log logs/error.log info;
events { worker_connections 128; }
rtmp {
 server {
  listen 127.0.0.1:11935;
  application live {
   live on;
   record off;
   allow publish 127.0.0.1;
   deny publish all;
   allow play 127.0.0.1;
   deny play all;
   hls on;
   hls_path /opt/adminsforum-rtmp-lab-20261019/hls;
   hls_fragment 2s;
   hls_playlist_length 8s;
  }
  application denied {
   live on;
   deny publish all;
   deny play all;
  }
 }
}
http {
 access_log logs/access.log;
 default_type application/octet-stream;
 server {
  listen 127.0.0.1:18085;
  server_name localhost;
  location /hls/ {
   alias /opt/adminsforum-rtmp-lab-20261019/hls/;
   types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; }
   add_header Cache-Control "no-store" always;
   autoindex off;
  }
  location = /stat { rtmp_stat all; }
  location / { return 404; }
 }
}</code></div></div>Port 11935 is RTMP ingest; 18085 serves HLS/statistics. Both bind to 127.0.0.1. The live application permits localhost publishing/playback only. The denied application deliberately rejects publishing for a negative test. No external command hooks or recording are enabled.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Validate, start and inspect</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>runuser -u www -- "&#36;RTMP_PREFIX/sbin/nginx" -p "&#36;RTMP_PREFIX/" -c conf/nginx.conf -t
runuser -u www -- "&#36;RTMP_PREFIX/sbin/nginx" -p "&#36;RTMP_PREFIX/" -c conf/nginx.conf
ss -lntp | grep -E '11935|18085'
curl -sS http://127.0.0.1:18085/stat</code></div></div>Run the start command only after the configuration test succeeds. Confirm the listeners say 127.0.0.1, not 0.0.0.0 or [::]. The XML statistics response should identify nginx_rtmp_version and the live application. An idle application has no publisher yet.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Publish a short synthetic stream</span><br />
This generates a small test picture and tone without using copyrighted sample media or a camera. Leave it running while you inspect the output from a second SSH session:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ffmpeg -hide_banner -loglevel error -re   -f lavfi -i testsrc2=size=320x180:rate=10   -f lavfi -i sine=frequency=440:sample_rate=44100   -t 30 -c:v libx264 -preset ultrafast -tune zerolatency   -threads 1 -pix_fmt yuv420p -g 20   -c:a aac -b:a 64k -f flv   rtmp://127.0.0.1:11935/live/test</code></div></div>-re paces the generated input; -t limits the test; libx264/AAC select the video/audio encoders. Ten frames per second with -g 20 gives a two-second keyframe interval for this fixture. The URL selects application live and stream name test. This is a modest functional test, not a capacity benchmark.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify the playlist and video segments</span><br />
While the publisher is active, wait for several seconds and run:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -i http://127.0.0.1:18085/hls/test.m3u8
ls -lh /opt/adminsforum-rtmp-lab-20261019/hls/
curl -sS http://127.0.0.1:18085/stat</code></div></div>Expect HTTP 200, Content-Type: application/vnd.apple.mpegurl, Cache-Control: no-store and a playlist beginning #EXTM3U. Look for an actual segment name such as test-0.ts. Download the segment name currently listed, rather than assuming an old segment is still present:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -f http://127.0.0.1:18085/hls/test-0.ts -o /tmp/af-stream-test.ts
ffprobe -v error -show_entries stream=codec_name,codec_type,width,height -of json /tmp/af-stream-test.ts
ffmpeg -v error -i /tmp/af-stream-test.ts -f null -</code></div></div>Replace test-0.ts if the current playlist lists another segment. Our lab returned a 99,640-byte segment, H.264 320x180 video and AAC audio; decoding exited successfully with no decoder errors. The separate denied application rejected a test publisher. An HLS playlist can return 404 until the first segment exists, and old live segments may disappear after the publisher stops.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Access the private test from your own computer</span><br />
For a player test, an SSH local tunnel can forward the localhost HTTP listener:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ssh -N -L 18085:127.0.0.1:18085 YOUR_SSH_USER@YOUR_VPS_IP</code></div></div>Keep the tunnel open and use <a href="http://127.0.0.1:18085/hls/test.m3u8" target="_blank" rel="noopener" class="mycode_url">http://127.0.0.1:18085/hls/test.m3u8</a> in an HLS-capable player while publishing. For OBS ingest, a second tunnel can forward port 11935; the server field is rtmp://127.0.0.1:11935/live and stream key is test. These desktop-player/OBS steps are follow-up instructions, not completed tests in our evidence. We verified the generated HLS segment using FFmpeg on the server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. Troubleshoot by symptom</span><ul class="mycode_list"><li>No such file ./configure: enter the extracted Nginx source directory; do not execute configure inside the RTMP repository or a generic parent src directory.<br />
</li>
<li>Unknown directive rtmp: verify you are using the newly built binary and that -V shows the module. The ordinary aaPanel binary is a different executable.<br />
</li>
<li>rtmp directive is not allowed here: move the block to the main configuration level, outside http/server/location.<br />
</li>
<li>Address already in use: inspect ss output and choose unused lab ports; do not stop the website server to free port 80.<br />
</li>
<li>HLS 404: confirm the publisher is active, its application/name match live/test, hls is enabled, and www can write the configured hls directory.<br />
</li>
<li>Permission denied: inspect logs/error.log and directory permissions; avoid chmod 777.<br />
</li>
<li>Audio/video missing: inspect FFmpeg output, keyframe spacing and actual segment codecs instead of assuming a successful connection means playable media.<br />
</li>
<li>Works locally but not remotely: localhost binding is intentional. A public streaming deployment needs its own access-control, HTTPS and firewall design.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">10. Stop and roll back this lab</span><br />
Stop the publisher with Ctrl+C, then stop only this instance:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>runuser -u www -- /opt/adminsforum-rtmp-lab-20261019/sbin/nginx   -p /opt/adminsforum-rtmp-lab-20261019/ -c conf/nginx.conf -s quit
ss -lntH '( sport = :11935 or sport = :18085 )'
/www/server/nginx/sbin/nginx -t</code></div></div>The dedicated ports should disappear; the aaPanel website configuration should still validate. We tested this stop operation. Keep the isolated files/logs for review; no shared website configuration needs restoring. The example does not install a boot service, so it does not auto-start after reboot.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">What is still needed for public broadcasting?</span><br />
A public deployment needs publisher authentication, protected statistics/control endpoints, valid playback HTTPS, monitored disk/bandwidth usage, a supervised service and realistic load tests. A stream name alone is not authentication. This article deliberately keeps the test private; it does not claim public OBS access, browser playback, CDN delivery, RTMPS or a production security audit.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">About aaPanel's Add Module screen</span><br />
The native panel approach recompiles its managed Nginx and must preserve all existing build options and update behavior. We did not perform that replacement on this working server. The corrected principle is to prepare the RTMP source in the prefix script, provide --add-module with its absolute path, and let the Nginx build run configure. Do not copy the older recipe's stray ./configure into that prefix script. A native-panel rebuild deserves a separate disposable-server test.<br />
<br />
References: <a href="https://www.aapanel.com/forum/d/2804-how-to-install-nginx-based-media-streaming-server" target="_blank" rel="noopener" class="mycode_url">original aaPanel discussion</a>, <a href="https://github.com/arut/nginx-rtmp-module" target="_blank" rel="noopener" class="mycode_url">module source</a>, <a href="https://nginx.org/en/download.html" target="_blank" rel="noopener" class="mycode_url">official Nginx downloads</a>. All diagrams and test media in this article are original AdminsForum lab material.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Create a Custom 404 Page in aaPanel with Nginx]]></title>
			<link>https://adminsforum.com/Thread-guide-create-a-custom-404-page-in-aapanel-with-nginx</link>
			<pubDate>Sat, 17 Oct 2026 03:22:31 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-create-a-custom-404-page-in-aapanel-with-nginx</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">For a static Nginx website in aaPanel, a custom 404 page needs two things: an error-page mapping and an HTML file. Verify a genuinely missing URL returns HTTP 404 with your custom content. Opening 404.html directly is not a sufficient test.</span><br />
<br />
Tested on aaPanel 8.0.7 on 16 October 2026 using the separate static lab site learn.adminslab.com. Its existing Nginx configuration already mapped 404 errors to /404.html. We backed up that file, edited its content in aaPanel and verified the response. No web-server configuration, application routing or other website was changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the correct website and server</span><br />
<br />
Open Website and find your exact hostname. Our lab entry used Nginx and was marked Static. Its document root was /www/wwwroot/learn.adminslab.com.<br />
<br />
This walkthrough is for that static Nginx setup. WordPress, Laravel, reverse proxies, Apache and OpenLiteSpeed can generate or intercept errors differently. If your problem is a valid WordPress page returning 404, use <a href="https://adminsforum.com/Thread-guide-fix-wordpress-permalink-404s-in-aapanel-free-edition-nginx" target="_blank" rel="noopener" class="mycode_url">the WordPress permalink troubleshooting guide</a>; replacing an error-page design will not repair routing.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Preserve the original file before editing</span><br />
<br />
We copied the original 404.html into /www/backup/af-custom-404-lab-20261016/404.html.original through SSH. The source and backup SHA-256 checksums matched. The backup sits outside the public document root so visitors cannot download the old file through the website.<br />
<br />
For your site, keep a recoverable copy before changing content. Record its original owner and permissions. Our file was owned by www and had mode 644. Do not grant broad write permissions just to make an editor save.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Inspect the error-page mapping</span><br />
<br />
Under Website, open Conf for the correct hostname and choose Config. We inspected the existing Nginx configuration and found this active directive in its error-page section:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>error_page 404 /404.html;</code></div></div><br />
Our configuration also had a separate commented line in the SSL section. A line starting with # is a comment; do not assume that commented example is the active rule or modify aaPanel's SSL markers.<br />
<br />
The active mapping already existed, so we did not add another directive or reload Nginx. If your site lacks a mapping, preserve its configuration first and review the correct server context before adding one. Do not replace the whole generated configuration with a generic example. The <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page" target="_blank" rel="noopener" class="mycode_url">Nginx error_page reference</a> explains its syntax and status handling.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Edit 404.html in File Manager</span><br />
<br />
Close the website settings and open Files. Enter your verified document-root path in the path bar. Double-click 404.html to open Online Text Editor.<br />
<br />
We replaced only this disposable lab file's HTML and clicked Save. The panel displayed Saved! and History: 1.<br />
<br />
<img src="https://adminsforum.com/attachment.php?aid=378" loading="lazy"  alt="[Image: attachment.php?aid=378]" class="mycode_img" /><br />
<span style="font-style: italic;" class="mycode_i">Actual lab error-page editor. The file path identifies the website being changed.</span><br />
<br />
A simple starter body is:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>&lt;!doctype html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;
&lt;title&gt;Page not found&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;main&gt;
&lt;h1&gt;404 - Page not found&lt;/h1&gt;
&lt;p&gt;Check the address or return to the homepage.&lt;/p&gt;
&lt;p&gt;&lt;a href="/"&gt;Return to homepage&lt;/a&gt;&lt;/p&gt;
&lt;/main&gt;
&lt;/body&gt;
&lt;/html&gt;</code></div></div><br />
Our actual lab page added local styling, AdminsForum branding and the test marker AF-CUSTOM-404-20261016. The starter above is deliberately shorter. Adapt the wording and navigation to your own site; avoid exposing server paths or technical exception details to visitors.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Request a URL that does not exist</span><br />
<br />
We visited <a href="https://learn.adminslab.com/af-missing-page-20261016" target="_blank" rel="noopener" class="mycode_url">https://learn.adminslab.com/af-missing-page-20261016</a>. The browser displayed the custom page, and its Return to homepage link led back to the expected lab homepage.<br />
<br />
<img src="https://adminsforum.com/attachment.php?aid=379" loading="lazy"  alt="[Image: attachment.php?aid=379]" class="mycode_img" /><br />
<span style="font-style: italic;" class="mycode_i">Actual missing-URL result. The visual 404 heading helps visitors, but the HTTP response status must also be checked.</span><br />
<br />
Our independent HTTP checks returned:<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">/af-missing-page-20261016:</span> status 404; custom error marker present.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">/404.html:</span> status 200; custom error marker present.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">/:</span> status 200; original homepage marker present.<br />
</li>
</ul>
<br />
The direct file request returned 200 because that HTML file exists. That is why testing only /404.html can mislead you. The missing URL is the important status test. Our homepage stayed available with its original content.<br />
<br />
For a simple command-line header check, substitute your own hostname and a confirmed missing path:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -I https://example.com/a-confirmed-missing-page</code></div></div><br />
Also inspect the response body using your browser or a normal GET request. Some applications handle HEAD differently, and redirects can hide the response you intended to inspect. Our recorded status checks used GET requests with certificate verification enabled.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Avoid a soft 404</span><br />
<br />
Do not redirect every missing URL to the homepage or deliberately return 200 merely to show a friendly error message. Google describes error-like pages with successful responses as possible soft 404s. A genuine missing page should communicate the appropriate HTTP error status. See <a href="https://developers.google.com/crawling/docs/troubleshooting/http-status-codes" target="_blank" rel="noopener" class="mycode_url">Google's HTTP status-code guidance</a>.<br />
<br />
We did not use an =200 override or change application rewrite rules. If an application generates the response, verify its status at that layer rather than assuming this static file controls it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Rollback and troubleshooting</span><br />
<br />
If the new design is wrong, restore the preserved HTML file and repeat both the missing-URL and homepage checks. If you changed server configuration separately, restore its own backup, validate syntax and use the appropriate controlled reload workflow. Our lesson changed only HTML, so no service restart was needed. The rollback instructions were not executed as a separate restore test.<br />
<br />
If you still see the default design, verify the hostname, document root, active web server and browser/cache response. If the custom file is unreadable, inspect ownership and permissions. For application-generated errors, check that application's routing and logs instead of overwriting them.<br />
<br />
For more editing and archive operations, see <a href="https://adminsforum.com/Thread-guide-edit-compress-and-extract-files-in-aapanel-file-manager" target="_blank" rel="noopener" class="mycode_url">aaPanel File Manager: Edit, Compress and Extract</a>.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=378" target="_blank" title="">custom-404-editor-20261016.jpg</a> (Size: 278.34 KB / Downloads: 32)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=379" target="_blank" title="">custom-404-browser-20261016.jpg</a> (Size: 75.65 KB / Downloads: 25)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">For a static Nginx website in aaPanel, a custom 404 page needs two things: an error-page mapping and an HTML file. Verify a genuinely missing URL returns HTTP 404 with your custom content. Opening 404.html directly is not a sufficient test.</span><br />
<br />
Tested on aaPanel 8.0.7 on 16 October 2026 using the separate static lab site learn.adminslab.com. Its existing Nginx configuration already mapped 404 errors to /404.html. We backed up that file, edited its content in aaPanel and verified the response. No web-server configuration, application routing or other website was changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the correct website and server</span><br />
<br />
Open Website and find your exact hostname. Our lab entry used Nginx and was marked Static. Its document root was /www/wwwroot/learn.adminslab.com.<br />
<br />
This walkthrough is for that static Nginx setup. WordPress, Laravel, reverse proxies, Apache and OpenLiteSpeed can generate or intercept errors differently. If your problem is a valid WordPress page returning 404, use <a href="https://adminsforum.com/Thread-guide-fix-wordpress-permalink-404s-in-aapanel-free-edition-nginx" target="_blank" rel="noopener" class="mycode_url">the WordPress permalink troubleshooting guide</a>; replacing an error-page design will not repair routing.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Preserve the original file before editing</span><br />
<br />
We copied the original 404.html into /www/backup/af-custom-404-lab-20261016/404.html.original through SSH. The source and backup SHA-256 checksums matched. The backup sits outside the public document root so visitors cannot download the old file through the website.<br />
<br />
For your site, keep a recoverable copy before changing content. Record its original owner and permissions. Our file was owned by www and had mode 644. Do not grant broad write permissions just to make an editor save.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Inspect the error-page mapping</span><br />
<br />
Under Website, open Conf for the correct hostname and choose Config. We inspected the existing Nginx configuration and found this active directive in its error-page section:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>error_page 404 /404.html;</code></div></div><br />
Our configuration also had a separate commented line in the SSL section. A line starting with # is a comment; do not assume that commented example is the active rule or modify aaPanel's SSL markers.<br />
<br />
The active mapping already existed, so we did not add another directive or reload Nginx. If your site lacks a mapping, preserve its configuration first and review the correct server context before adding one. Do not replace the whole generated configuration with a generic example. The <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page" target="_blank" rel="noopener" class="mycode_url">Nginx error_page reference</a> explains its syntax and status handling.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Edit 404.html in File Manager</span><br />
<br />
Close the website settings and open Files. Enter your verified document-root path in the path bar. Double-click 404.html to open Online Text Editor.<br />
<br />
We replaced only this disposable lab file's HTML and clicked Save. The panel displayed Saved! and History: 1.<br />
<br />
<img src="https://adminsforum.com/attachment.php?aid=378" loading="lazy"  alt="[Image: attachment.php?aid=378]" class="mycode_img" /><br />
<span style="font-style: italic;" class="mycode_i">Actual lab error-page editor. The file path identifies the website being changed.</span><br />
<br />
A simple starter body is:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>&lt;!doctype html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;
&lt;title&gt;Page not found&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;main&gt;
&lt;h1&gt;404 - Page not found&lt;/h1&gt;
&lt;p&gt;Check the address or return to the homepage.&lt;/p&gt;
&lt;p&gt;&lt;a href="/"&gt;Return to homepage&lt;/a&gt;&lt;/p&gt;
&lt;/main&gt;
&lt;/body&gt;
&lt;/html&gt;</code></div></div><br />
Our actual lab page added local styling, AdminsForum branding and the test marker AF-CUSTOM-404-20261016. The starter above is deliberately shorter. Adapt the wording and navigation to your own site; avoid exposing server paths or technical exception details to visitors.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Request a URL that does not exist</span><br />
<br />
We visited <a href="https://learn.adminslab.com/af-missing-page-20261016" target="_blank" rel="noopener" class="mycode_url">https://learn.adminslab.com/af-missing-page-20261016</a>. The browser displayed the custom page, and its Return to homepage link led back to the expected lab homepage.<br />
<br />
<img src="https://adminsforum.com/attachment.php?aid=379" loading="lazy"  alt="[Image: attachment.php?aid=379]" class="mycode_img" /><br />
<span style="font-style: italic;" class="mycode_i">Actual missing-URL result. The visual 404 heading helps visitors, but the HTTP response status must also be checked.</span><br />
<br />
Our independent HTTP checks returned:<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">/af-missing-page-20261016:</span> status 404; custom error marker present.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">/404.html:</span> status 200; custom error marker present.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">/:</span> status 200; original homepage marker present.<br />
</li>
</ul>
<br />
The direct file request returned 200 because that HTML file exists. That is why testing only /404.html can mislead you. The missing URL is the important status test. Our homepage stayed available with its original content.<br />
<br />
For a simple command-line header check, substitute your own hostname and a confirmed missing path:<br />
<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -I https://example.com/a-confirmed-missing-page</code></div></div><br />
Also inspect the response body using your browser or a normal GET request. Some applications handle HEAD differently, and redirects can hide the response you intended to inspect. Our recorded status checks used GET requests with certificate verification enabled.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Avoid a soft 404</span><br />
<br />
Do not redirect every missing URL to the homepage or deliberately return 200 merely to show a friendly error message. Google describes error-like pages with successful responses as possible soft 404s. A genuine missing page should communicate the appropriate HTTP error status. See <a href="https://developers.google.com/crawling/docs/troubleshooting/http-status-codes" target="_blank" rel="noopener" class="mycode_url">Google's HTTP status-code guidance</a>.<br />
<br />
We did not use an =200 override or change application rewrite rules. If an application generates the response, verify its status at that layer rather than assuming this static file controls it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Rollback and troubleshooting</span><br />
<br />
If the new design is wrong, restore the preserved HTML file and repeat both the missing-URL and homepage checks. If you changed server configuration separately, restore its own backup, validate syntax and use the appropriate controlled reload workflow. Our lesson changed only HTML, so no service restart was needed. The rollback instructions were not executed as a separate restore test.<br />
<br />
If you still see the default design, verify the hostname, document root, active web server and browser/cache response. If the custom file is unreadable, inspect ownership and permissions. For application-generated errors, check that application's routing and logs instead of overwriting them.<br />
<br />
For more editing and archive operations, see <a href="https://adminsforum.com/Thread-guide-edit-compress-and-extract-files-in-aapanel-file-manager" target="_blank" rel="noopener" class="mycode_url">aaPanel File Manager: Edit, Compress and Extract</a>.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=378" target="_blank" title="">custom-404-editor-20261016.jpg</a> (Size: 278.34 KB / Downloads: 32)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=379" target="_blank" title="">custom-404-browser-20261016.jpg</a> (Size: 75.65 KB / Downloads: 25)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Troubleshoot HTTP 408 Request Timeouts in aaPanel]]></title>
			<link>https://adminsforum.com/Thread-guide-troubleshoot-http-408-request-timeouts-in-aapanel</link>
			<pubDate>Thu, 15 Oct 2026 15:15:50 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-troubleshoot-http-408-request-timeouts-in-aapanel</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A logged 408 during an upload can mean Nginx stopped waiting for the incoming request. Identify whether it was waiting for headers or the body before changing application or upstream timeouts.</span><br />
<br />
This guide demonstrates a deliberately stalled tiny request body on a private endpoint. It also records an important limit: the client received no HTTP response bytes in our test even though the access log recorded 408. A browser connection error and an origin log entry can describe the same incident differently.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=337" target="_blank" title="">nginx-408-20261015.jpg</a> (Size: 124.84 KB / Downloads: 55)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum lab evidence, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record what failed and when</span><br />
Note the URL path, time and timezone, action, approximate input size and whether the client was still sending data. Does the issue affect one network, one browser or many users? An upload failure before the body reaches the application is a different problem from slow processing after reception.<br />
<br />
Use a safe test file or synthetic data in staging. Do not repeatedly submit a real import, purchase or other operation with possible side effects. Inspect browser Network information without publishing authentication cookies, private URLs or captured request bodies.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Inspect both access and error logs</span><br />
In aaPanel open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, locate the affected site and use its <span style="font-weight: bold;" class="mycode_b">Log</span> control. Check <span style="font-weight: bold;" class="mycode_b">Access log</span> and <span style="font-weight: bold;" class="mycode_b">Error log</span> around the incident. Panel labels may vary.<br />
<br />
Our lab site's normal log paths are:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.log
/www/wwwlogs/adminslab.com.error.log</code></div></div>Use your actual configured paths. A bounded SSH example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.log
tail -n 100 /www/wwwlogs/example.com.error.log</code></div></div>The access log may be decisive even when the error log has no explanatory entry. Our isolated stalled request was recorded as:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>"POST /body-check HTTP/1.1" 408 0</code></div></div>There was no matching explanatory timeout message in that test's error log. Do not assume an empty error-log search means the request completed normally.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Separate request reception from upstream processing</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">408 recorded while receiving a request:</span> investigate the incoming header/body phase and the layer recording it.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">413 Request Entity Too Large:</span> investigate body-size allowances; a bigger timeout does not fix a body-size rejection.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">504 Gateway Timeout:</span> investigate an upstream wait; increasing client-body reception time does not repair a slow application response.<br />
</li>
</ul>
A CDN or reverse proxy adds another layer. Correlate its events with the origin request rather than assuming every browser error came directly from Nginx. Do not expose a private origin or disable certificate validation to compare layers.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the applicable Nginx timers</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_body_timeout
client_header_timeout</code></div></div>Nginx documents client_body_timeout as the allowed gap between successive body-read operations, not a universal total upload-duration budget. A transfer can take longer overall while continuing to make progress. Header reception has a separate timeout.<br />
<br />
Locate the active configuration and its scope before proposing a change. Proxy and FastCGI read timeouts govern another side of the request flow. PHP execution time also does not describe every earlier network-reception stage.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. What our private test demonstrated</span><br />
We ran Nginx 1.30.5 with a separate configuration and a dummy HTTP backend. Both listeners were bound only to loopback. The exact test location used a deliberately short <span style="font-weight: bold;" class="mycode_b">one-second body timeout</span> and request buffering.<br />
<ul class="mycode_list"><li>The client sent complete headers declaring a <span style="font-weight: bold;" class="mycode_b">10-byte body</span>, sent only <span style="font-weight: bold;" class="mycode_b">one body byte</span>, then stopped sending.<br />
</li>
<li>The connection closed after <span style="font-weight: bold;" class="mycode_b">1.002 seconds</span>. The access log recorded <span style="font-weight: bold;" class="mycode_b">408</span>, while the client received <span style="font-weight: bold;" class="mycode_b">zero HTTP response bytes</span>. The buffered incomplete request did not reach our dummy backend.<br />
</li>
<li>A separate complete <span style="font-weight: bold;" class="mycode_b">six-byte POST</span> reached the backend, which counted six bytes and returned the expected message with <span style="font-weight: bold;" class="mycode_b">HTTP 200</span>. The same timeout setting remained in place.<br />
</li>
</ul>
This was not a multipart upload, file-storage test, TLS test or application-capacity benchmark. The complete request shows the private handler worked with a finished tiny body; it does not prove that a real upload workflow is repaired.<br />
<br />
Both listeners were stopped and the isolated PID file disappeared. The main Nginx configuration hash remained unchanged, and the normal HTTPS website returned 200 afterward. No live website timeout or firewall rule changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Investigate why the request stopped progressing</span><br />
Compare a small harmless staging request over a stable connection with the affected client path. Inspect interrupted connectivity, a stalled upload implementation or a proxy that stops forwarding body data. Avoid recreating a slow-client pattern against the production service.<br />
<br />
Check whether the application or uploader supplies a valid request and completes its body. An advertised Content-Length larger than the actual sent body is one possible failure pattern; it was deliberately used in our lab, not proven to be your site's cause.<br />
<br />
For large legitimate transfers, review the application's supported upload method, resumability and relevant proxy limits. Do not switch request buffering or expose a backend port simply because one timed-out request occurred. Those changes have wider resource and behavior consequences.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Adjust a timeout only for a measured requirement</span><br />
A one-second setting was chosen to make our private demonstration bounded. It is not a production recommendation. Extending an allowance can be justified for a measured legitimate workflow, but also permits idle requests to occupy connections longer.<br />
<br />
Back up the affected configuration and record the current value and scope. Review the chain of client, CDN/proxy, origin and application limits. Change only the relevant setting through the supported workflow, validate Nginx configuration before applying an edit and keep the previous configuration for rollback.<br />
<br />
Do not disable timeouts or weaken protections globally to hide a network symptom. A larger allowance will not make a client send missing data or fix an unrelated processing error.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Verify the complete intended operation</span><br />
In staging, repeat a safe representative upload and confirm expected content, byte count and application outcome. Check the access logs and relevant application records. A 200 response from a dummy handler does not prove a file was stored or an import completed.<br />
<br />
Observe a representative period after any justified change and compare affected client networks. Retain redacted evidence and remove temporary diagnostics. Keep a rollback plan if the change increases resource pressure or fails to address the incident.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">For a support request</span><br />
Include the time, safe path, proxy layout, size, whether the body was fully sent, relevant status/log entry and recent changes. Exclude cookie values, credentials and private uploaded content.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-fix-413-request-entity-too-large-errors-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Investigate request-body size errors</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-504-gateway-timeout-errors-in-aapanel-using-logs" target="_blank" rel="noopener" class="mycode_url">Investigate upstream response timeouts</a><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx client-body timeout</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_header_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx client-header timeout</a><br />
<a href="https://trac.nginx.org/nginx/ticket/1005" target="_blank" rel="noopener" class="mycode_url">Nginx discussion of logged 408 and connection-close behavior</a>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A logged 408 during an upload can mean Nginx stopped waiting for the incoming request. Identify whether it was waiting for headers or the body before changing application or upstream timeouts.</span><br />
<br />
This guide demonstrates a deliberately stalled tiny request body on a private endpoint. It also records an important limit: the client received no HTTP response bytes in our test even though the access log recorded 408. A browser connection error and an origin log entry can describe the same incident differently.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=337" target="_blank" title="">nginx-408-20261015.jpg</a> (Size: 124.84 KB / Downloads: 55)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum lab evidence, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record what failed and when</span><br />
Note the URL path, time and timezone, action, approximate input size and whether the client was still sending data. Does the issue affect one network, one browser or many users? An upload failure before the body reaches the application is a different problem from slow processing after reception.<br />
<br />
Use a safe test file or synthetic data in staging. Do not repeatedly submit a real import, purchase or other operation with possible side effects. Inspect browser Network information without publishing authentication cookies, private URLs or captured request bodies.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Inspect both access and error logs</span><br />
In aaPanel open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, locate the affected site and use its <span style="font-weight: bold;" class="mycode_b">Log</span> control. Check <span style="font-weight: bold;" class="mycode_b">Access log</span> and <span style="font-weight: bold;" class="mycode_b">Error log</span> around the incident. Panel labels may vary.<br />
<br />
Our lab site's normal log paths are:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.log
/www/wwwlogs/adminslab.com.error.log</code></div></div>Use your actual configured paths. A bounded SSH example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.log
tail -n 100 /www/wwwlogs/example.com.error.log</code></div></div>The access log may be decisive even when the error log has no explanatory entry. Our isolated stalled request was recorded as:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>"POST /body-check HTTP/1.1" 408 0</code></div></div>There was no matching explanatory timeout message in that test's error log. Do not assume an empty error-log search means the request completed normally.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Separate request reception from upstream processing</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">408 recorded while receiving a request:</span> investigate the incoming header/body phase and the layer recording it.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">413 Request Entity Too Large:</span> investigate body-size allowances; a bigger timeout does not fix a body-size rejection.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">504 Gateway Timeout:</span> investigate an upstream wait; increasing client-body reception time does not repair a slow application response.<br />
</li>
</ul>
A CDN or reverse proxy adds another layer. Correlate its events with the origin request rather than assuming every browser error came directly from Nginx. Do not expose a private origin or disable certificate validation to compare layers.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the applicable Nginx timers</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_body_timeout
client_header_timeout</code></div></div>Nginx documents client_body_timeout as the allowed gap between successive body-read operations, not a universal total upload-duration budget. A transfer can take longer overall while continuing to make progress. Header reception has a separate timeout.<br />
<br />
Locate the active configuration and its scope before proposing a change. Proxy and FastCGI read timeouts govern another side of the request flow. PHP execution time also does not describe every earlier network-reception stage.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. What our private test demonstrated</span><br />
We ran Nginx 1.30.5 with a separate configuration and a dummy HTTP backend. Both listeners were bound only to loopback. The exact test location used a deliberately short <span style="font-weight: bold;" class="mycode_b">one-second body timeout</span> and request buffering.<br />
<ul class="mycode_list"><li>The client sent complete headers declaring a <span style="font-weight: bold;" class="mycode_b">10-byte body</span>, sent only <span style="font-weight: bold;" class="mycode_b">one body byte</span>, then stopped sending.<br />
</li>
<li>The connection closed after <span style="font-weight: bold;" class="mycode_b">1.002 seconds</span>. The access log recorded <span style="font-weight: bold;" class="mycode_b">408</span>, while the client received <span style="font-weight: bold;" class="mycode_b">zero HTTP response bytes</span>. The buffered incomplete request did not reach our dummy backend.<br />
</li>
<li>A separate complete <span style="font-weight: bold;" class="mycode_b">six-byte POST</span> reached the backend, which counted six bytes and returned the expected message with <span style="font-weight: bold;" class="mycode_b">HTTP 200</span>. The same timeout setting remained in place.<br />
</li>
</ul>
This was not a multipart upload, file-storage test, TLS test or application-capacity benchmark. The complete request shows the private handler worked with a finished tiny body; it does not prove that a real upload workflow is repaired.<br />
<br />
Both listeners were stopped and the isolated PID file disappeared. The main Nginx configuration hash remained unchanged, and the normal HTTPS website returned 200 afterward. No live website timeout or firewall rule changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Investigate why the request stopped progressing</span><br />
Compare a small harmless staging request over a stable connection with the affected client path. Inspect interrupted connectivity, a stalled upload implementation or a proxy that stops forwarding body data. Avoid recreating a slow-client pattern against the production service.<br />
<br />
Check whether the application or uploader supplies a valid request and completes its body. An advertised Content-Length larger than the actual sent body is one possible failure pattern; it was deliberately used in our lab, not proven to be your site's cause.<br />
<br />
For large legitimate transfers, review the application's supported upload method, resumability and relevant proxy limits. Do not switch request buffering or expose a backend port simply because one timed-out request occurred. Those changes have wider resource and behavior consequences.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Adjust a timeout only for a measured requirement</span><br />
A one-second setting was chosen to make our private demonstration bounded. It is not a production recommendation. Extending an allowance can be justified for a measured legitimate workflow, but also permits idle requests to occupy connections longer.<br />
<br />
Back up the affected configuration and record the current value and scope. Review the chain of client, CDN/proxy, origin and application limits. Change only the relevant setting through the supported workflow, validate Nginx configuration before applying an edit and keep the previous configuration for rollback.<br />
<br />
Do not disable timeouts or weaken protections globally to hide a network symptom. A larger allowance will not make a client send missing data or fix an unrelated processing error.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Verify the complete intended operation</span><br />
In staging, repeat a safe representative upload and confirm expected content, byte count and application outcome. Check the access logs and relevant application records. A 200 response from a dummy handler does not prove a file was stored or an import completed.<br />
<br />
Observe a representative period after any justified change and compare affected client networks. Retain redacted evidence and remove temporary diagnostics. Keep a rollback plan if the change increases resource pressure or fails to address the incident.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">For a support request</span><br />
Include the time, safe path, proxy layout, size, whether the body was fully sent, relevant status/log entry and recent changes. Exclude cookie values, credentials and private uploaded content.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-fix-413-request-entity-too-large-errors-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Investigate request-body size errors</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-504-gateway-timeout-errors-in-aapanel-using-logs" target="_blank" rel="noopener" class="mycode_url">Investigate upstream response timeouts</a><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx client-body timeout</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_header_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx client-header timeout</a><br />
<a href="https://trac.nginx.org/nginx/ticket/1005" target="_blank" rel="noopener" class="mycode_url">Nginx discussion of logged 408 and connection-close behavior</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fix Too Many Redirects in aaPanel]]></title>
			<link>https://adminsforum.com/Thread-guide-fix-too-many-redirects-in-aapanel</link>
			<pubDate>Thu, 15 Oct 2026 13:51:37 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-fix-too-many-redirects-in-aapanel</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">“Too many redirects” means the client kept following redirects without reaching a usable final page. Trace the status and Location of each hop before changing aaPanel, application or proxy settings.</span><br />
<br />
This guide investigates an actual redirect loop, complementing our separate tutorial on creating 301 and 302 rules. We reproduced a two-path loop privately and verified the corrected chain. No real website redirects or CDN settings were changed.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=328" target="_blank" title="">nginx-redirect-20261015.jpg</a> (Size: 127.36 KB / Downloads: 54)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum lab results, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record the starting URL and expected destination</span><br />
Write down the hostname, scheme, path, time and timezone. Which final page should load? Does the failure happen before login, after login or only in one browser? Remove private query values before sharing examples.<br />
<br />
Do not repeatedly submit forms to investigate redirects; use a safe read-only page. A redirect chain can change request behavior, so a simple GET test does not prove a login, upload or payment flow works correctly.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Inspect one response before following it</span><br />
In browser developer tools open Network, preserve the request log and inspect each response status and Location. Watch for repeated hostnames, paths or HTTP/HTTPS changes. Do not share authenticated network captures or raw cookie values.<br />
<br />
An optional safe GET check on your own site is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 15 -D - -o /dev/null &#92;
  https://example.com/safe-page</code></div></div>This prints headers and discards the body without automatically following the redirect. Inspect Location rather than only the 301 or 302 status. Replace the example with your own safe URL. Headers can contain cookies or private destinations, so redact before sharing.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Follow a small, bounded chain</span><br />
After checking that the destination is expected, use a limited follow test:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS -L --max-redirs 5 --max-time 20 &#92;
  -D - -o /dev/null &#92;
  -w 'Final HTTP %{http_code} | redirects %{num_redirects}&#92;n' &#92;
  https://example.com/safe-page</code></div></div>The redirect and time limits prevent an unbounded diagnostic run. A redirect-limit failure alone is not proof of a cycle: a long finite chain can also exceed the chosen limit. Inspect the actual repeated destinations. Do not add credentials, use --location-trusted or turn off TLS validation for this check.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. What our private test demonstrated</span><br />
A separate Nginx 1.30.5 instance listened only on the lab's loopback interface. Its two exact paths initially behaved like this:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/loop-a -&gt; 302 /loop-b
/loop-b -&gt; 302 /loop-a</code></div></div>A first-hop check returned 302. A second diagnostic followed at most three redirects and stopped with <span style="font-weight: bold;" class="mycode_b">curl exit 47</span>, reporting that the redirect maximum had been reached. Its captured Location headers repeated the two paths, proving a cycle in this test.<br />
<br />
We then changed only the private /loop-b handler to return a fixed test message. A new bounded request followed <span style="font-weight: bold;" class="mycode_b">one redirect</span>, reached <span style="font-weight: bold;" class="mycode_b">HTTP 200</span> and contained the expected message:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/loop-a -&gt; 302 /loop-b -&gt; 200</code></div></div>These were temporary redirects in a loopback HTTP experiment. We did not simulate TLS, a CDN, cached permanent redirects or an authenticated application. The private listener was stopped and its PID file disappeared. The main Nginx configuration hash stayed unchanged, and the normal HTTPS website returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Match the chain to the responsible layer</span><br />
In aaPanel inspect the affected site's redirect rules and SSL/HTTPS settings. Our tested panel version exposes redirect management through <span style="font-weight: bold;" class="mycode_b">Website → Conf → Redirect</span>; labels can differ. Record existing values before editing.<br />
<br />
Also inspect the application's configured public URL, canonical-host logic and redirect plugins. If a CDN or load balancer is present, review its redirect rules and how it connects to the origin. Two layers can each look reasonable in isolation while sending users back to one another.<br />
<br />
Use the website access log to correlate the paths and times. Repeated external 302 responses may be normal-looking successful log entries, so the error log need not contain a fatal error. An internal Nginx rewrite cycle is a different condition from the client-visible two-URL loop tested here.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Recognize common conflicting patterns</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Hostname conflict:</span> one rule sends example.com to <a href="http://www.example.com" target="_blank" rel="noopener" class="mycode_url">www.example.com</a> while another sends it back. Choose the intended canonical host and identify which rule contradicts it.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Scheme conflict:</span> one layer enforces HTTPS while another sends the request back to HTTP. Correct the contradictory configuration while retaining the intended secure final URL.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Self-redirect:</span> a rule sends a URL to the same effective URL after normalizing its hostname or path. Compare the complete destination, not just the text shown in a panel label.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Login redirects:</span> the application may consider the user unauthenticated on each request. Investigate sessions, cookies and application logic separately rather than removing login protection.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">7. Check proxy HTTPS handling without weakening security</span><br />
Cloudflare documents a particular loop when Flexible mode sends HTTP to an origin that always redirects HTTP to HTTPS. If that is your demonstrated configuration, plan valid origin HTTPS and the appropriate encrypted origin mode; do not merely switch off TLS protections to hide the symptom.<br />
<br />
For any reverse proxy, ensure the application recognizes the original public scheme through its supported trusted-proxy setup. Do not trust arbitrary client-supplied forwarded headers or copy a wildcard proxy-trust setting. Review your actual proxy chain and framework documentation.<br />
<br />
This section explains possible configurations; our private test did not change or validate a Cloudflare zone.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Apply one narrow correction and verify</span><br />
Back up the affected configuration and record the rule, scope and previous destination. Correct the contradictory rule rather than adding another redirect to compensate. Validate Nginx configuration before applying a file edit. If validation fails, restore the backup and investigate the reported problem.<br />
<br />
Repeat the first-hop and bounded-chain checks. Confirm the final hostname, scheme, path and page content are the intended ones. Then check relevant query strings, a nearby path and any affected login flow using controlled data. Do not claim success just because the redirect count is smaller.<br />
<br />
Browsers or other layers can retain cached redirects. Compare a fresh command-line request with browser behavior before adding more rules. Clear only the relevant test cache when justified; clearing cookies can sign a user out and does not repair a conflicting server rule. Keep a rollback path if another route breaks.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">When requesting support</span><br />
Provide the safe starting URL, intended destination, redacted status/Location chain, time, proxy layout and recent changes. Exclude private tokens, session cookies and sensitive query strings.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-set-up-301-and-302-redirects-in-aapanel-and-test-the-result" target="_blank" rel="noopener" class="mycode_url">Create and verify 301 and 302 redirects in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Inspect website logs</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-php-session-storage-errors-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Investigate PHP session-storage failures</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://curl.se/docs/manpage.html" target="_blank" rel="noopener" class="mycode_url">curl redirect and header options</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_rewrite_module.html" target="_blank" rel="noopener" class="mycode_url">Nginx rewrite and redirect module</a><br />
<a href="https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/" target="_blank" rel="noopener" class="mycode_url">Cloudflare redirect-loop troubleshooting</a>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">“Too many redirects” means the client kept following redirects without reaching a usable final page. Trace the status and Location of each hop before changing aaPanel, application or proxy settings.</span><br />
<br />
This guide investigates an actual redirect loop, complementing our separate tutorial on creating 301 and 302 rules. We reproduced a two-path loop privately and verified the corrected chain. No real website redirects or CDN settings were changed.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=328" target="_blank" title="">nginx-redirect-20261015.jpg</a> (Size: 127.36 KB / Downloads: 54)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum lab results, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record the starting URL and expected destination</span><br />
Write down the hostname, scheme, path, time and timezone. Which final page should load? Does the failure happen before login, after login or only in one browser? Remove private query values before sharing examples.<br />
<br />
Do not repeatedly submit forms to investigate redirects; use a safe read-only page. A redirect chain can change request behavior, so a simple GET test does not prove a login, upload or payment flow works correctly.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Inspect one response before following it</span><br />
In browser developer tools open Network, preserve the request log and inspect each response status and Location. Watch for repeated hostnames, paths or HTTP/HTTPS changes. Do not share authenticated network captures or raw cookie values.<br />
<br />
An optional safe GET check on your own site is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 15 -D - -o /dev/null &#92;
  https://example.com/safe-page</code></div></div>This prints headers and discards the body without automatically following the redirect. Inspect Location rather than only the 301 or 302 status. Replace the example with your own safe URL. Headers can contain cookies or private destinations, so redact before sharing.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Follow a small, bounded chain</span><br />
After checking that the destination is expected, use a limited follow test:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS -L --max-redirs 5 --max-time 20 &#92;
  -D - -o /dev/null &#92;
  -w 'Final HTTP %{http_code} | redirects %{num_redirects}&#92;n' &#92;
  https://example.com/safe-page</code></div></div>The redirect and time limits prevent an unbounded diagnostic run. A redirect-limit failure alone is not proof of a cycle: a long finite chain can also exceed the chosen limit. Inspect the actual repeated destinations. Do not add credentials, use --location-trusted or turn off TLS validation for this check.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. What our private test demonstrated</span><br />
A separate Nginx 1.30.5 instance listened only on the lab's loopback interface. Its two exact paths initially behaved like this:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/loop-a -&gt; 302 /loop-b
/loop-b -&gt; 302 /loop-a</code></div></div>A first-hop check returned 302. A second diagnostic followed at most three redirects and stopped with <span style="font-weight: bold;" class="mycode_b">curl exit 47</span>, reporting that the redirect maximum had been reached. Its captured Location headers repeated the two paths, proving a cycle in this test.<br />
<br />
We then changed only the private /loop-b handler to return a fixed test message. A new bounded request followed <span style="font-weight: bold;" class="mycode_b">one redirect</span>, reached <span style="font-weight: bold;" class="mycode_b">HTTP 200</span> and contained the expected message:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/loop-a -&gt; 302 /loop-b -&gt; 200</code></div></div>These were temporary redirects in a loopback HTTP experiment. We did not simulate TLS, a CDN, cached permanent redirects or an authenticated application. The private listener was stopped and its PID file disappeared. The main Nginx configuration hash stayed unchanged, and the normal HTTPS website returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Match the chain to the responsible layer</span><br />
In aaPanel inspect the affected site's redirect rules and SSL/HTTPS settings. Our tested panel version exposes redirect management through <span style="font-weight: bold;" class="mycode_b">Website → Conf → Redirect</span>; labels can differ. Record existing values before editing.<br />
<br />
Also inspect the application's configured public URL, canonical-host logic and redirect plugins. If a CDN or load balancer is present, review its redirect rules and how it connects to the origin. Two layers can each look reasonable in isolation while sending users back to one another.<br />
<br />
Use the website access log to correlate the paths and times. Repeated external 302 responses may be normal-looking successful log entries, so the error log need not contain a fatal error. An internal Nginx rewrite cycle is a different condition from the client-visible two-URL loop tested here.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Recognize common conflicting patterns</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Hostname conflict:</span> one rule sends example.com to <a href="http://www.example.com" target="_blank" rel="noopener" class="mycode_url">www.example.com</a> while another sends it back. Choose the intended canonical host and identify which rule contradicts it.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Scheme conflict:</span> one layer enforces HTTPS while another sends the request back to HTTP. Correct the contradictory configuration while retaining the intended secure final URL.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Self-redirect:</span> a rule sends a URL to the same effective URL after normalizing its hostname or path. Compare the complete destination, not just the text shown in a panel label.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Login redirects:</span> the application may consider the user unauthenticated on each request. Investigate sessions, cookies and application logic separately rather than removing login protection.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">7. Check proxy HTTPS handling without weakening security</span><br />
Cloudflare documents a particular loop when Flexible mode sends HTTP to an origin that always redirects HTTP to HTTPS. If that is your demonstrated configuration, plan valid origin HTTPS and the appropriate encrypted origin mode; do not merely switch off TLS protections to hide the symptom.<br />
<br />
For any reverse proxy, ensure the application recognizes the original public scheme through its supported trusted-proxy setup. Do not trust arbitrary client-supplied forwarded headers or copy a wildcard proxy-trust setting. Review your actual proxy chain and framework documentation.<br />
<br />
This section explains possible configurations; our private test did not change or validate a Cloudflare zone.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Apply one narrow correction and verify</span><br />
Back up the affected configuration and record the rule, scope and previous destination. Correct the contradictory rule rather than adding another redirect to compensate. Validate Nginx configuration before applying a file edit. If validation fails, restore the backup and investigate the reported problem.<br />
<br />
Repeat the first-hop and bounded-chain checks. Confirm the final hostname, scheme, path and page content are the intended ones. Then check relevant query strings, a nearby path and any affected login flow using controlled data. Do not claim success just because the redirect count is smaller.<br />
<br />
Browsers or other layers can retain cached redirects. Compare a fresh command-line request with browser behavior before adding more rules. Clear only the relevant test cache when justified; clearing cookies can sign a user out and does not repair a conflicting server rule. Keep a rollback path if another route breaks.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">When requesting support</span><br />
Provide the safe starting URL, intended destination, redacted status/Location chain, time, proxy layout and recent changes. Exclude private tokens, session cookies and sensitive query strings.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-set-up-301-and-302-redirects-in-aapanel-and-test-the-result" target="_blank" rel="noopener" class="mycode_url">Create and verify 301 and 302 redirects in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Inspect website logs</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-php-session-storage-errors-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Investigate PHP session-storage failures</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://curl.se/docs/manpage.html" target="_blank" rel="noopener" class="mycode_url">curl redirect and header options</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_rewrite_module.html" target="_blank" rel="noopener" class="mycode_url">Nginx rewrite and redirect module</a><br />
<a href="https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/" target="_blank" rel="noopener" class="mycode_url">Cloudflare redirect-loop troubleshooting</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fix Upstream Sent Too Big Header Errors in aaPanel]]></title>
			<link>https://adminsforum.com/Thread-guide-fix-upstream-sent-too-big-header-errors-in-aapanel</link>
			<pubDate>Thu, 15 Oct 2026 13:37:49 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-fix-upstream-sent-too-big-header-errors-in-aapanel</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 502 with “upstream sent too big header” in the Nginx error log means the upstream response header did not fit the applicable header-reading buffer. Identify the response and handler before changing configuration.</span><br />
<br />
This is a focused troubleshooting guide, not a generic fix for every 502. A failed upstream connection, slow response and oversized response header have different log evidence and need different checks.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=326" target="_blank" title="">nginx-header-20261015.jpg</a> (Size: 116.13 KB / Downloads: 42)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum private lab results, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Confirm the exact error and request</span><br />
Record the URL path, time, timezone and action that failed. Does it happen after login, during a redirect or on one application page? Avoid repeatedly submitting an action that can change data.<br />
<br />
In aaPanel open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, find the affected site and select <span style="font-weight: bold;" class="mycode_b">Log → Error log</span>. Match the entry to the access log. Panel labels may vary. Our lab site's normal error log is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.error.log</code></div></div>For your own domain, inspect the actual configured log path. A bounded SSH example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.error.log</code></div></div>Our isolated test produced:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>upstream sent too big header while reading response header from upstream</code></div></div>A 502 response without this matching error does not establish a header-buffer problem. Read the rest of the line to identify the request and upstream protocol. Redact private URLs and session data before sharing evidence.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Distinguish response headers from request headers</span><br />
The upstream response travels from the application toward Nginx. It can include Set-Cookie fields, redirects and application metadata. The browser request travels in the opposite direction and can carry a Cookie field.<br />
<br />
A browser-cookie or oversized-request-header error is a separate problem. Increasing client-header allowances does not address the upstream-response error demonstrated here. Similarly, changing an upload body-size limit does not fix a response header.<br />
<br />
Do not delete every visitor's session or remove authentication cookies as a generic repair. Identify whether cookies are involved, which side of the exchange is failing and what the application actually emits.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Identify the relevant handler</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">HTTP reverse proxy:</span> for example a Node or Python HTTP service. Inspect the active proxy location and its response-buffer configuration.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">FastCGI:</span> commonly PHP-FPM. Inspect the selected PHP handler and included FastCGI configuration instead.<br />
</li>
</ul>
The pertinent first-response buffer directives are:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code># HTTP proxy response
proxy_buffer_size

# FastCGI response
fastcgi_buffer_size</code></div></div>They are different directives, not interchangeable settings. Review related buffer settings and inheritance as a complete configuration. Do not add both indiscriminately or replace the panel's generated PHP location with an unrelated snippet.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. What the isolated lab test demonstrated</span><br />
We used Nginx 1.30.5 with a separate configuration and a dummy HTTP upstream. Both listeners were bound only to loopback. The upstream returned one harmless padded header and a fixed test message; no real cookies or credentials were used.<br />
<ul class="mycode_list"><li>With a <span style="font-weight: bold;" class="mycode_b">6,144-byte synthetic header value</span> and a <span style="font-weight: bold;" class="mycode_b">4k proxy_buffer_size</span>, the request returned <span style="font-weight: bold;" class="mycode_b">502</span> and the log recorded the exact oversized-header error.<br />
</li>
<li>Changing only that buffer to <span style="font-weight: bold;" class="mycode_b">8k</span>, within the already compatible private buffer configuration, returned <span style="font-weight: bold;" class="mycode_b">200</span> with the expected body.<br />
</li>
<li>Restoring the original <span style="font-weight: bold;" class="mycode_b">4k</span> buffer and reducing the synthetic header value to <span style="font-weight: bold;" class="mycode_b">128 bytes</span> also returned <span style="font-weight: bold;" class="mycode_b">200</span>.<br />
</li>
</ul>
Those byte counts describe only the padded header's value. Its name, separators, status line and other response headers add overhead. These values are a demonstration, not an exact maximum usable header size or a production recommendation.<br />
<br />
Only three requests were measured. We did not test a PHP application's cookies, CDN limits or browser acceptance of large headers. Both temporary listeners were stopped and the isolated PID file disappeared. The main Nginx configuration hash stayed unchanged, and the normal HTTPS website returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Inspect why the response header is large</span><br />
Use protected application diagnostics or a controlled staging reproduction to inspect header names, counts and lengths. When Nginx rejects the upstream response, the browser may see only Nginx's error response, not the original oversized headers.<br />
<br />
Review recent authentication, session, redirect and plugin changes. Look for duplicated Set-Cookie fields, excessive client-side session data, unexpectedly long redirect URLs or verbose debug metadata. These are investigation leads, not proof of the cause on your site.<br />
<br />
Never post raw Set-Cookie or Authorization values in a support thread. Prefer a redacted summary of header names and byte lengths. Do not expose a private backend port or disable TLS validation to obtain a diagnostic capture.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Prefer a justified application or scoped configuration fix</span><br />
If the application is unintentionally adding duplicate or excessive headers, correct that behavior through its supported settings or code. Validate login, logout, redirects and session behavior afterward. Removing a required security or session header can introduce a new problem.<br />
<br />
If a legitimate response needs a larger allowance, back up the affected configuration and record its scope. In aaPanel inspect the site's active proxy or FastCGI section and included files. A shared include can affect other sites. Use a finite value based on measured headers, and review the full buffer configuration before applying it.<br />
<br />
Run configuration validation first; related settings can make a proposed combination invalid. Apply only after validation passes, and keep the original configuration ready for rollback. The lab's 8k value is not a universal fix. Larger buffers can increase memory requirements under concurrent traffic.<br />
<br />
Changing proxy settings cannot increase a separate CDN or client limit. Verify every relevant layer rather than repeatedly increasing origin values.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify the actual user action</span><br />
Repeat a small number of safe requests and confirm the intended application result, not just status 200. Check for new matching log errors. For an authenticated case, test the affected login or redirect flow with a controlled test account and ensure sessions still behave correctly.<br />
<br />
Also check an ordinary page, static assets and other sites that share any edited configuration. Remove temporary diagnostics. If the change fails validation, breaks another flow or does not address the error, restore the saved configuration and investigate the remaining evidence.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">For a support request, include</span><br />
The affected path without private query data, timestamp, short redacted error, HTTP-proxy versus FastCGI handler, approximate response-header lengths and recent application changes. Exclude cookies, tokens and complete configuration dumps.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-504-gateway-timeout-errors-in-aapanel-using-logs" target="_blank" rel="noopener" class="mycode_url">Investigate upstream timeout errors</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-413-request-entity-too-large-errors-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Distinguish request-body size errors</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size" target="_blank" rel="noopener" class="mycode_url">Nginx HTTP-proxy buffer documentation</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_buffer_size" target="_blank" rel="noopener" class="mycode_url">Nginx FastCGI buffer documentation</a>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 502 with “upstream sent too big header” in the Nginx error log means the upstream response header did not fit the applicable header-reading buffer. Identify the response and handler before changing configuration.</span><br />
<br />
This is a focused troubleshooting guide, not a generic fix for every 502. A failed upstream connection, slow response and oversized response header have different log evidence and need different checks.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=326" target="_blank" title="">nginx-header-20261015.jpg</a> (Size: 116.13 KB / Downloads: 42)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum private lab results, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Confirm the exact error and request</span><br />
Record the URL path, time, timezone and action that failed. Does it happen after login, during a redirect or on one application page? Avoid repeatedly submitting an action that can change data.<br />
<br />
In aaPanel open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, find the affected site and select <span style="font-weight: bold;" class="mycode_b">Log → Error log</span>. Match the entry to the access log. Panel labels may vary. Our lab site's normal error log is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.error.log</code></div></div>For your own domain, inspect the actual configured log path. A bounded SSH example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.error.log</code></div></div>Our isolated test produced:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>upstream sent too big header while reading response header from upstream</code></div></div>A 502 response without this matching error does not establish a header-buffer problem. Read the rest of the line to identify the request and upstream protocol. Redact private URLs and session data before sharing evidence.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Distinguish response headers from request headers</span><br />
The upstream response travels from the application toward Nginx. It can include Set-Cookie fields, redirects and application metadata. The browser request travels in the opposite direction and can carry a Cookie field.<br />
<br />
A browser-cookie or oversized-request-header error is a separate problem. Increasing client-header allowances does not address the upstream-response error demonstrated here. Similarly, changing an upload body-size limit does not fix a response header.<br />
<br />
Do not delete every visitor's session or remove authentication cookies as a generic repair. Identify whether cookies are involved, which side of the exchange is failing and what the application actually emits.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Identify the relevant handler</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">HTTP reverse proxy:</span> for example a Node or Python HTTP service. Inspect the active proxy location and its response-buffer configuration.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">FastCGI:</span> commonly PHP-FPM. Inspect the selected PHP handler and included FastCGI configuration instead.<br />
</li>
</ul>
The pertinent first-response buffer directives are:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code># HTTP proxy response
proxy_buffer_size

# FastCGI response
fastcgi_buffer_size</code></div></div>They are different directives, not interchangeable settings. Review related buffer settings and inheritance as a complete configuration. Do not add both indiscriminately or replace the panel's generated PHP location with an unrelated snippet.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. What the isolated lab test demonstrated</span><br />
We used Nginx 1.30.5 with a separate configuration and a dummy HTTP upstream. Both listeners were bound only to loopback. The upstream returned one harmless padded header and a fixed test message; no real cookies or credentials were used.<br />
<ul class="mycode_list"><li>With a <span style="font-weight: bold;" class="mycode_b">6,144-byte synthetic header value</span> and a <span style="font-weight: bold;" class="mycode_b">4k proxy_buffer_size</span>, the request returned <span style="font-weight: bold;" class="mycode_b">502</span> and the log recorded the exact oversized-header error.<br />
</li>
<li>Changing only that buffer to <span style="font-weight: bold;" class="mycode_b">8k</span>, within the already compatible private buffer configuration, returned <span style="font-weight: bold;" class="mycode_b">200</span> with the expected body.<br />
</li>
<li>Restoring the original <span style="font-weight: bold;" class="mycode_b">4k</span> buffer and reducing the synthetic header value to <span style="font-weight: bold;" class="mycode_b">128 bytes</span> also returned <span style="font-weight: bold;" class="mycode_b">200</span>.<br />
</li>
</ul>
Those byte counts describe only the padded header's value. Its name, separators, status line and other response headers add overhead. These values are a demonstration, not an exact maximum usable header size or a production recommendation.<br />
<br />
Only three requests were measured. We did not test a PHP application's cookies, CDN limits or browser acceptance of large headers. Both temporary listeners were stopped and the isolated PID file disappeared. The main Nginx configuration hash stayed unchanged, and the normal HTTPS website returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Inspect why the response header is large</span><br />
Use protected application diagnostics or a controlled staging reproduction to inspect header names, counts and lengths. When Nginx rejects the upstream response, the browser may see only Nginx's error response, not the original oversized headers.<br />
<br />
Review recent authentication, session, redirect and plugin changes. Look for duplicated Set-Cookie fields, excessive client-side session data, unexpectedly long redirect URLs or verbose debug metadata. These are investigation leads, not proof of the cause on your site.<br />
<br />
Never post raw Set-Cookie or Authorization values in a support thread. Prefer a redacted summary of header names and byte lengths. Do not expose a private backend port or disable TLS validation to obtain a diagnostic capture.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Prefer a justified application or scoped configuration fix</span><br />
If the application is unintentionally adding duplicate or excessive headers, correct that behavior through its supported settings or code. Validate login, logout, redirects and session behavior afterward. Removing a required security or session header can introduce a new problem.<br />
<br />
If a legitimate response needs a larger allowance, back up the affected configuration and record its scope. In aaPanel inspect the site's active proxy or FastCGI section and included files. A shared include can affect other sites. Use a finite value based on measured headers, and review the full buffer configuration before applying it.<br />
<br />
Run configuration validation first; related settings can make a proposed combination invalid. Apply only after validation passes, and keep the original configuration ready for rollback. The lab's 8k value is not a universal fix. Larger buffers can increase memory requirements under concurrent traffic.<br />
<br />
Changing proxy settings cannot increase a separate CDN or client limit. Verify every relevant layer rather than repeatedly increasing origin values.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify the actual user action</span><br />
Repeat a small number of safe requests and confirm the intended application result, not just status 200. Check for new matching log errors. For an authenticated case, test the affected login or redirect flow with a controlled test account and ensure sessions still behave correctly.<br />
<br />
Also check an ordinary page, static assets and other sites that share any edited configuration. Remove temporary diagnostics. If the change fails validation, breaks another flow or does not address the error, restore the saved configuration and investigate the remaining evidence.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">For a support request, include</span><br />
The affected path without private query data, timestamp, short redacted error, HTTP-proxy versus FastCGI handler, approximate response-header lengths and recent application changes. Exclude cookies, tokens and complete configuration dumps.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-504-gateway-timeout-errors-in-aapanel-using-logs" target="_blank" rel="noopener" class="mycode_url">Investigate upstream timeout errors</a><br />
<a href="https://adminsforum.com/Thread-guide-fix-413-request-entity-too-large-errors-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Distinguish request-body size errors</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size" target="_blank" rel="noopener" class="mycode_url">Nginx HTTP-proxy buffer documentation</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_buffer_size" target="_blank" rel="noopener" class="mycode_url">Nginx FastCGI buffer documentation</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fix 429 Too Many Requests Errors in aaPanel]]></title>
			<link>https://adminsforum.com/Thread-guide-fix-429-too-many-requests-errors-in-aapanel</link>
			<pubDate>Thu, 15 Oct 2026 12:42:27 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-fix-429-too-many-requests-errors-in-aapanel</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 429 Too Many Requests response usually means a request limit has been reached. Find the layer issuing the response before changing a setting: it may be your CDN, Nginx, a security plugin or the application itself.</span><br />
<br />
This guide demonstrates one Nginx limiter on a private lab endpoint. It does not assume every aaPanel website has that rule, and it does not recommend turning off protection to make an error disappear.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=323" target="_blank" title="">nginx-429-20261015.jpg</a> (Size: 116.42 KB / Downloads: 41)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum lab results, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Capture one safe example</span><br />
Record the URL path, time and timezone, action, response status and how often the client is sending requests. Does it affect everyone, one network, one account or only a particular API? A page can send many background requests even when a user clicks once.<br />
<br />
Inspect response headers in your browser's Network tab. If a Retry-After header is present, use its stated delay; do not assume every limiter supplies it. Avoid repeatedly submitting login forms, purchases or imports while diagnosing the problem. Save a redacted error example without session cookies, authorization headers or private query strings.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Match the response to website logs</span><br />
In aaPanel open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, find the affected site and select <span style="font-weight: bold;" class="mycode_b">Log</span>. Check <span style="font-weight: bold;" class="mycode_b">Access log</span> and <span style="font-weight: bold;" class="mycode_b">Error log</span> around the recorded time. Refresh and expand the displayed line count if needed. Labels may vary by panel version.<br />
<br />
Our lab site's logs are at:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.log
/www/wwwlogs/adminslab.com.error.log</code></div></div>Use the actual path configured for your own domain. A bounded SSH check is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.log
tail -n 100 /www/wwwlogs/example.com.error.log</code></div></div>A 429 entry confirms that this log recorded the response, but does not by itself identify the rule. If there is no matching origin request, check the CDN or earlier proxy's events and verify you selected the correct log. Application-generated 429 responses need application logs too.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Recognize an Nginx rate-limit rejection</span><br />
Our test error log contained:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>limiting requests, excess: 0.991 by zone "af429"</code></div></div>The named zone was our own test limiter. Its name is not a built-in aaPanel setting. We also added a diagnostic access-log field in the isolated configuration and saw:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>200 PASSED
429 REJECTED
200 PASSED</code></div></div>Default website logs may not contain that extra field. Do not expect to find it unless your log format includes it. Nginx can use a different rejection status; seeing 503 instead of 429 does not rule out a request limiter.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. What the private experiment tested</span><br />
We ran a separate Nginx configuration listening only on the lab's loopback interface. One exact path served a harmless text fixture. Its illustrative limit allowed one request per second with no extra burst allowance, and we explicitly selected 429 for rejections.<br />
<ul class="mycode_list"><li>The first request returned <span style="font-weight: bold;" class="mycode_b">200</span> with the expected text.<br />
</li>
<li>An immediate second request returned <span style="font-weight: bold;" class="mycode_b">429</span>, with a matching limiter rejection in the error log.<br />
</li>
<li>After a <span style="font-weight: bold;" class="mycode_b">1.2-second pause</span>, the next request returned <span style="font-weight: bold;" class="mycode_b">200</span> with the same expected text.<br />
</li>
</ul>
The limiter stayed active throughout. Only three requests were measured in this corrected run; this was not a load test or an application-capacity benchmark. An earlier fixture path had a permissions error, which was corrected separately before this comparison. Waiting cleared this synthetic rate condition; it does not prove waiting fixes every real 429.<br />
<br />
The temporary listener was stopped and its PID file and disposable text fixture were removed. The main Nginx configuration hash remained unchanged, and the normal HTTPS website returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Fix the cause at the correct layer</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">A client is polling too frequently:</span> reduce unnecessary refreshes, use caching where appropriate and apply bounded backoff. Honor Retry-After when supplied. Do not create a rapid retry loop after a rejection.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">An application account or API quota is reached:</span> inspect that service's quota and application logs. Changing Nginx cannot increase a third-party API allowance. Check for duplicate jobs or repeated failed requests.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">A CDN or WAF rule is rejecting legitimate traffic:</span> inspect the matching event and rule. Consider a narrow, documented adjustment for the intended endpoint after reviewing the evidence. Keep login and abuse protections in place.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Nginx sees many visitors as one address:</span> investigate how the trusted reverse proxy communicates client addresses. This is a configuration review, not a reason to trust arbitrary forwarded headers. Incorrect trust settings can let clients spoof identities.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">A valid origin rule is too strict for an application's normal behavior:</span> measure that endpoint's legitimate request pattern before choosing a scoped allowance. Avoid a blanket site-wide exemption or unlimited burst setting.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">6. Review configuration safely</span><br />
Before editing, back up the affected site's configuration and identify any included rules. Note the rule scope, key, rate and burst behavior. The test's one-request-per-second allowance was deliberately restrictive and is not a recommended value for your site.<br />
<br />
If you have evidence for a change, alter only the intended rule, validate the complete Nginx configuration using the panel's validation mechanism and apply it only after validation passes. Keep the previous configuration for rollback. Do not add duplicate location blocks or globally disable a security plugin to fix one URL.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify without creating more traffic problems</span><br />
Repeat a small number of safe requests at a normal pace. Check both response content and status, then inspect the corresponding logs. Confirm that ordinary users can finish the intended action and that the relevant protection still applies to excessive requests in a controlled test environment.<br />
<br />
Do not run bursts against a production login or somebody else's API. If many visitors share a corporate or mobile network, include that scenario in your review. Observe a representative period before calling an intermittent issue resolved.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">When asking for help, include</span><br />
The failing path without private query data, time and timezone, which layer logged the rejection, a short redacted log excerpt, approximate request frequency and any recent rule changes. Never include authentication headers, full session cookies or API keys.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-monitor-server-resources-during-aapanel-website-traffic-tests" target="_blank" rel="noopener" class="mycode_url">Monitor resource use during controlled traffic tests</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical reference</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_limit_req_module.html" target="_blank" rel="noopener" class="mycode_url">Official Nginx request-limit module documentation</a>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 429 Too Many Requests response usually means a request limit has been reached. Find the layer issuing the response before changing a setting: it may be your CDN, Nginx, a security plugin or the application itself.</span><br />
<br />
This guide demonstrates one Nginx limiter on a private lab endpoint. It does not assume every aaPanel website has that rule, and it does not recommend turning off protection to make an error disappear.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=323" target="_blank" title="">nginx-429-20261015.jpg</a> (Size: 116.42 KB / Downloads: 41)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">Original AdminsForum lab results, formatted as a transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Capture one safe example</span><br />
Record the URL path, time and timezone, action, response status and how often the client is sending requests. Does it affect everyone, one network, one account or only a particular API? A page can send many background requests even when a user clicks once.<br />
<br />
Inspect response headers in your browser's Network tab. If a Retry-After header is present, use its stated delay; do not assume every limiter supplies it. Avoid repeatedly submitting login forms, purchases or imports while diagnosing the problem. Save a redacted error example without session cookies, authorization headers or private query strings.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Match the response to website logs</span><br />
In aaPanel open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, find the affected site and select <span style="font-weight: bold;" class="mycode_b">Log</span>. Check <span style="font-weight: bold;" class="mycode_b">Access log</span> and <span style="font-weight: bold;" class="mycode_b">Error log</span> around the recorded time. Refresh and expand the displayed line count if needed. Labels may vary by panel version.<br />
<br />
Our lab site's logs are at:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.log
/www/wwwlogs/adminslab.com.error.log</code></div></div>Use the actual path configured for your own domain. A bounded SSH check is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.log
tail -n 100 /www/wwwlogs/example.com.error.log</code></div></div>A 429 entry confirms that this log recorded the response, but does not by itself identify the rule. If there is no matching origin request, check the CDN or earlier proxy's events and verify you selected the correct log. Application-generated 429 responses need application logs too.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Recognize an Nginx rate-limit rejection</span><br />
Our test error log contained:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>limiting requests, excess: 0.991 by zone "af429"</code></div></div>The named zone was our own test limiter. Its name is not a built-in aaPanel setting. We also added a diagnostic access-log field in the isolated configuration and saw:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>200 PASSED
429 REJECTED
200 PASSED</code></div></div>Default website logs may not contain that extra field. Do not expect to find it unless your log format includes it. Nginx can use a different rejection status; seeing 503 instead of 429 does not rule out a request limiter.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. What the private experiment tested</span><br />
We ran a separate Nginx configuration listening only on the lab's loopback interface. One exact path served a harmless text fixture. Its illustrative limit allowed one request per second with no extra burst allowance, and we explicitly selected 429 for rejections.<br />
<ul class="mycode_list"><li>The first request returned <span style="font-weight: bold;" class="mycode_b">200</span> with the expected text.<br />
</li>
<li>An immediate second request returned <span style="font-weight: bold;" class="mycode_b">429</span>, with a matching limiter rejection in the error log.<br />
</li>
<li>After a <span style="font-weight: bold;" class="mycode_b">1.2-second pause</span>, the next request returned <span style="font-weight: bold;" class="mycode_b">200</span> with the same expected text.<br />
</li>
</ul>
The limiter stayed active throughout. Only three requests were measured in this corrected run; this was not a load test or an application-capacity benchmark. An earlier fixture path had a permissions error, which was corrected separately before this comparison. Waiting cleared this synthetic rate condition; it does not prove waiting fixes every real 429.<br />
<br />
The temporary listener was stopped and its PID file and disposable text fixture were removed. The main Nginx configuration hash remained unchanged, and the normal HTTPS website returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Fix the cause at the correct layer</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">A client is polling too frequently:</span> reduce unnecessary refreshes, use caching where appropriate and apply bounded backoff. Honor Retry-After when supplied. Do not create a rapid retry loop after a rejection.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">An application account or API quota is reached:</span> inspect that service's quota and application logs. Changing Nginx cannot increase a third-party API allowance. Check for duplicate jobs or repeated failed requests.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">A CDN or WAF rule is rejecting legitimate traffic:</span> inspect the matching event and rule. Consider a narrow, documented adjustment for the intended endpoint after reviewing the evidence. Keep login and abuse protections in place.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Nginx sees many visitors as one address:</span> investigate how the trusted reverse proxy communicates client addresses. This is a configuration review, not a reason to trust arbitrary forwarded headers. Incorrect trust settings can let clients spoof identities.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">A valid origin rule is too strict for an application's normal behavior:</span> measure that endpoint's legitimate request pattern before choosing a scoped allowance. Avoid a blanket site-wide exemption or unlimited burst setting.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">6. Review configuration safely</span><br />
Before editing, back up the affected site's configuration and identify any included rules. Note the rule scope, key, rate and burst behavior. The test's one-request-per-second allowance was deliberately restrictive and is not a recommended value for your site.<br />
<br />
If you have evidence for a change, alter only the intended rule, validate the complete Nginx configuration using the panel's validation mechanism and apply it only after validation passes. Keep the previous configuration for rollback. Do not add duplicate location blocks or globally disable a security plugin to fix one URL.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify without creating more traffic problems</span><br />
Repeat a small number of safe requests at a normal pace. Check both response content and status, then inspect the corresponding logs. Confirm that ordinary users can finish the intended action and that the relevant protection still applies to excessive requests in a controlled test environment.<br />
<br />
Do not run bursts against a production login or somebody else's API. If many visitors share a corporate or mobile network, include that scenario in your review. Observe a representative period before calling an intermittent issue resolved.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">When asking for help, include</span><br />
The failing path without private query data, time and timezone, which layer logged the rejection, a short redacted log excerpt, approximate request frequency and any recent rule changes. Never include authentication headers, full session cookies or API keys.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related guides</span><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-monitor-server-resources-during-aapanel-website-traffic-tests" target="_blank" rel="noopener" class="mycode_url">Monitor resource use during controlled traffic tests</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical reference</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_limit_req_module.html" target="_blank" rel="noopener" class="mycode_url">Official Nginx request-limit module documentation</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fix 504 Gateway Timeout Errors in aaPanel Using Logs]]></title>
			<link>https://adminsforum.com/Thread-guide-fix-504-gateway-timeout-errors-in-aapanel-using-logs</link>
			<pubDate>Thu, 15 Oct 2026 12:24:18 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-fix-504-gateway-timeout-errors-in-aapanel-using-logs</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 504 Gateway Timeout means a gateway did not receive a timely response from its upstream. The useful next step is to identify which gateway timed out and what it was waiting for.</span> A slow SQL query, external API, busy PHP worker pool or an unreachable upstream can require very different fixes.<br />
<br />
This guide uses an isolated Nginx HTTP-proxy experiment, then shows how to investigate a real aaPanel website. The tested values below are deliberately tiny lab settings, not recommended production limits.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=322" target="_blank" title="">nginx-504-20261015.jpg</a> (Size: 130.65 KB / Downloads: 42)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum original lab results, presented as a formatted transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record the failing request before changing settings</span><br />
Write down the exact time and timezone, domain, path, action and approximate waiting time. Does one report page fail, or every page? Does it fail only during traffic peaks? Avoid repeatedly submitting payments, imports or other actions that might continue on the server after the browser gives up.<br />
<br />
Check whether the response comes from your origin Nginx, another reverse proxy or a CDN. A branded error page is a clue, not conclusive proof of which layer caused the delay. Match the request against origin logs. Do not disable your firewall or expose a private origin to diagnose this.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Find the matching website logs in aaPanel</span><br />
Open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, locate the affected site and use its <span style="font-weight: bold;" class="mycode_b">Log</span> control. Inspect <span style="font-weight: bold;" class="mycode_b">Access log</span> and <span style="font-weight: bold;" class="mycode_b">Error log</span> around the recorded time. Refresh the viewer and expand the displayed line count if necessary. Panel layouts differ by version.<br />
<br />
On our lab site the files are:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.log
/www/wwwlogs/adminslab.com.error.log</code></div></div>Replace the domain with your own site's actual configured log path. A bounded SSH check is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.error.log
tail -n 100 /www/wwwlogs/example.com.log</code></div></div>Do not paste complete logs publicly: redact tokens, private query strings, addresses and customer information. A browser 504 with no matching origin request may point to an earlier proxy layer or the wrong log file.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Read the upstream error, not just the status code</span><br />
Our failing request produced this shortened error:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>upstream timed out (110: Connection timed out)
while reading response header from upstream</code></div></div>Here Nginx was waiting for the upstream response header. A message about connecting to the upstream points to a different phase: check the upstream address, listener, route and service health. A connection refusal often leads to 502 instead; do not treat every gateway failure as the same problem.<br />
<br />
The error line's upstream field helps distinguish HTTP proxying from FastCGI. Correlate the path and timestamp with the application log and, for PHP, its slow log. A 504 alone does not prove that MySQL, PHP or Nginx needs a larger limit.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the two common read-timeout settings</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code># HTTP reverse proxy: Node, Python or another HTTP service
proxy_read_timeout 30s;

# FastCGI: commonly a PHP-FPM website
fastcgi_read_timeout 30s;</code></div></div>These are illustrative directives, not instructions to add both. Identify the active location and included configuration first. Do not create a second conflicting location block or edit a shared PHP include without understanding every affected site.<br />
<br />
Nginx read timeouts measure the allowed gap between successive reads from the upstream; they are not a universal total request duration limit. Connection timeouts govern another phase. PHP execution limits, PHP-FPM termination limits and CDN or load-balancer limits are separate and may end the request sooner.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. What our isolated test actually demonstrated</span><br />
The lab used the installed Nginx 1.30.5 binary, a separate configuration and two loopback-only listeners. Its dummy HTTP upstream deliberately waited before returning a response. There were only three measured requests:<br />
<ul class="mycode_list"><li>Delay 2 seconds, read timeout 1 second: <span style="font-weight: bold;" class="mycode_b">504 in 1.002187 seconds</span>, with an upstream-header timeout in the error log.<br />
</li>
<li>Same 2-second delay, read timeout 4 seconds: <span style="font-weight: bold;" class="mycode_b">200 in 2.002012 seconds</span>. The longer allowance did not make the upstream faster.<br />
</li>
<li>Artificial delay reduced to 0.2 seconds, original 1-second timeout restored: <span style="font-weight: bold;" class="mycode_b">200 in 0.202015 seconds</span>.<br />
</li>
</ul>
The last phase changed a synthetic sleep, not a real database query or production application. This demonstrates timeout behavior, not PHP capacity or a universal performance improvement. Both test listeners were closed, the isolated PID file disappeared, the main Nginx configuration hash stayed unchanged and the normal HTTPS site returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Investigate what the real application is waiting for</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Slow PHP code:</span> correlate a PHP-FPM slow-log stack with the failing URL. Check whether workers are busy or requests are queuing. Raising worker counts beyond available memory can make the situation worse.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Database work:</span> identify the actual slow query and inspect its plan before adding an index. Check locks and transaction duration. Do not change global database limits based on one gateway error.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">External API:</span> inspect the application's outgoing request timeout and upstream provider status. Use bounded retries and a clear failure response; retries can multiply load.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Traffic or resource pressure:</span> compare CPU, available memory, swap activity and disk latency with the incident time. A quiet server after the event does not rule out an earlier spike.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Long exports or imports:</span> consider a background job with status polling and a downloadable result. Increasing web timeouts indefinitely leaves connections and workers occupied.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">7. If a timeout adjustment is justified, make it deliberately</span><br />
Back up the affected site's configuration. Record the old value, the expected operation duration and the limits of every proxy in front of it. In aaPanel open the affected site's configuration and locate the active proxy or FastCGI section. Change only the appropriate directive in the intended scope, then run the panel's configuration validation before applying or reloading it. Restore the backup if validation fails.<br />
<br />
Do not copy the lab's 1-second or 4-second settings to your website. Choose a finite budget based on a legitimate request and measured behavior. A larger budget is sometimes appropriate, but it also permits longer resource occupancy and does not repair slow application work.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Verify the result and keep a rollback path</span><br />
Repeat one safe request and compare status, response content and elapsed time. Check the application actually finished; an HTTP 200 alone can contain an application error. Confirm the error log has no new matching upstream timeout, inspect nearby normal pages and monitor resource use. For an intermittent issue, observe a representative traffic period before declaring it fixed.<br />
<br />
A simple non-mutating request timing example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 45 -o /dev/null &#92;
  -w 'HTTP %{http_code} | total %{time_total}s&#92;n' &#92;
  https://example.com/safe-status-page</code></div></div>Use a real, safe URL on your site. curl's own maximum time is a client-side limit, separate from Nginx's upstream timeout. Never include login tokens or secrets in a public command example.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related troubleshooting guides</span><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-find-slow-php-requests-in-aapanel-with-php-fpm-slow-logs" target="_blank" rel="noopener" class="mycode_url">Trace slow PHP requests with PHP-FPM slow logs</a><br />
<a href="https://adminsforum.com/Thread-guide-tune-mariadb-queries-in-aapanel-with-explain-and-index-tests" target="_blank" rel="noopener" class="mycode_url">Investigate MariaDB query plans and indexes</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx proxy_read_timeout documentation</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx fastcgi_read_timeout documentation</a>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 504 Gateway Timeout means a gateway did not receive a timely response from its upstream. The useful next step is to identify which gateway timed out and what it was waiting for.</span> A slow SQL query, external API, busy PHP worker pool or an unreachable upstream can require very different fixes.<br />
<br />
This guide uses an isolated Nginx HTTP-proxy experiment, then shows how to investigate a real aaPanel website. The tested values below are deliberately tiny lab settings, not recommended production limits.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=322" target="_blank" title="">nginx-504-20261015.jpg</a> (Size: 130.65 KB / Downloads: 42)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum original lab results, presented as a formatted transcript rather than a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record the failing request before changing settings</span><br />
Write down the exact time and timezone, domain, path, action and approximate waiting time. Does one report page fail, or every page? Does it fail only during traffic peaks? Avoid repeatedly submitting payments, imports or other actions that might continue on the server after the browser gives up.<br />
<br />
Check whether the response comes from your origin Nginx, another reverse proxy or a CDN. A branded error page is a clue, not conclusive proof of which layer caused the delay. Match the request against origin logs. Do not disable your firewall or expose a private origin to diagnose this.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Find the matching website logs in aaPanel</span><br />
Open <span style="font-weight: bold;" class="mycode_b">Website → PHP Project</span>, locate the affected site and use its <span style="font-weight: bold;" class="mycode_b">Log</span> control. Inspect <span style="font-weight: bold;" class="mycode_b">Access log</span> and <span style="font-weight: bold;" class="mycode_b">Error log</span> around the recorded time. Refresh the viewer and expand the displayed line count if necessary. Panel layouts differ by version.<br />
<br />
On our lab site the files are:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/wwwlogs/adminslab.com.log
/www/wwwlogs/adminslab.com.error.log</code></div></div>Replace the domain with your own site's actual configured log path. A bounded SSH check is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.error.log
tail -n 100 /www/wwwlogs/example.com.log</code></div></div>Do not paste complete logs publicly: redact tokens, private query strings, addresses and customer information. A browser 504 with no matching origin request may point to an earlier proxy layer or the wrong log file.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Read the upstream error, not just the status code</span><br />
Our failing request produced this shortened error:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>upstream timed out (110: Connection timed out)
while reading response header from upstream</code></div></div>Here Nginx was waiting for the upstream response header. A message about connecting to the upstream points to a different phase: check the upstream address, listener, route and service health. A connection refusal often leads to 502 instead; do not treat every gateway failure as the same problem.<br />
<br />
The error line's upstream field helps distinguish HTTP proxying from FastCGI. Correlate the path and timestamp with the application log and, for PHP, its slow log. A 504 alone does not prove that MySQL, PHP or Nginx needs a larger limit.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the two common read-timeout settings</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code># HTTP reverse proxy: Node, Python or another HTTP service
proxy_read_timeout 30s;

# FastCGI: commonly a PHP-FPM website
fastcgi_read_timeout 30s;</code></div></div>These are illustrative directives, not instructions to add both. Identify the active location and included configuration first. Do not create a second conflicting location block or edit a shared PHP include without understanding every affected site.<br />
<br />
Nginx read timeouts measure the allowed gap between successive reads from the upstream; they are not a universal total request duration limit. Connection timeouts govern another phase. PHP execution limits, PHP-FPM termination limits and CDN or load-balancer limits are separate and may end the request sooner.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. What our isolated test actually demonstrated</span><br />
The lab used the installed Nginx 1.30.5 binary, a separate configuration and two loopback-only listeners. Its dummy HTTP upstream deliberately waited before returning a response. There were only three measured requests:<br />
<ul class="mycode_list"><li>Delay 2 seconds, read timeout 1 second: <span style="font-weight: bold;" class="mycode_b">504 in 1.002187 seconds</span>, with an upstream-header timeout in the error log.<br />
</li>
<li>Same 2-second delay, read timeout 4 seconds: <span style="font-weight: bold;" class="mycode_b">200 in 2.002012 seconds</span>. The longer allowance did not make the upstream faster.<br />
</li>
<li>Artificial delay reduced to 0.2 seconds, original 1-second timeout restored: <span style="font-weight: bold;" class="mycode_b">200 in 0.202015 seconds</span>.<br />
</li>
</ul>
The last phase changed a synthetic sleep, not a real database query or production application. This demonstrates timeout behavior, not PHP capacity or a universal performance improvement. Both test listeners were closed, the isolated PID file disappeared, the main Nginx configuration hash stayed unchanged and the normal HTTPS site returned 200 afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Investigate what the real application is waiting for</span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Slow PHP code:</span> correlate a PHP-FPM slow-log stack with the failing URL. Check whether workers are busy or requests are queuing. Raising worker counts beyond available memory can make the situation worse.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Database work:</span> identify the actual slow query and inspect its plan before adding an index. Check locks and transaction duration. Do not change global database limits based on one gateway error.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">External API:</span> inspect the application's outgoing request timeout and upstream provider status. Use bounded retries and a clear failure response; retries can multiply load.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Traffic or resource pressure:</span> compare CPU, available memory, swap activity and disk latency with the incident time. A quiet server after the event does not rule out an earlier spike.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Long exports or imports:</span> consider a background job with status polling and a downloadable result. Increasing web timeouts indefinitely leaves connections and workers occupied.<br />
</li>
</ul>
<br />
<span style="font-weight: bold;" class="mycode_b">7. If a timeout adjustment is justified, make it deliberately</span><br />
Back up the affected site's configuration. Record the old value, the expected operation duration and the limits of every proxy in front of it. In aaPanel open the affected site's configuration and locate the active proxy or FastCGI section. Change only the appropriate directive in the intended scope, then run the panel's configuration validation before applying or reloading it. Restore the backup if validation fails.<br />
<br />
Do not copy the lab's 1-second or 4-second settings to your website. Choose a finite budget based on a legitimate request and measured behavior. A larger budget is sometimes appropriate, but it also permits longer resource occupancy and does not repair slow application work.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Verify the result and keep a rollback path</span><br />
Repeat one safe request and compare status, response content and elapsed time. Check the application actually finished; an HTTP 200 alone can contain an application error. Confirm the error log has no new matching upstream timeout, inspect nearby normal pages and monitor resource use. For an intermittent issue, observe a representative traffic period before declaring it fixed.<br />
<br />
A simple non-mutating request timing example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 45 -o /dev/null &#92;
  -w 'HTTP %{http_code} | total %{time_total}s&#92;n' &#92;
  https://example.com/safe-status-page</code></div></div>Use a real, safe URL on your site. curl's own maximum time is a client-side limit, separate from Nginx's upstream timeout. Never include login tokens or secrets in a public command example.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Related troubleshooting guides</span><br />
<a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">Find website access and error logs in aaPanel</a><br />
<a href="https://adminsforum.com/Thread-guide-find-slow-php-requests-in-aapanel-with-php-fpm-slow-logs" target="_blank" rel="noopener" class="mycode_url">Trace slow PHP requests with PHP-FPM slow logs</a><br />
<a href="https://adminsforum.com/Thread-guide-tune-mariadb-queries-in-aapanel-with-explain-and-index-tests" target="_blank" rel="noopener" class="mycode_url">Investigate MariaDB query plans and indexes</a><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Technical references</span><br />
<a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx proxy_read_timeout documentation</a><br />
<a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout" target="_blank" rel="noopener" class="mycode_url">Nginx fastcgi_read_timeout documentation</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fix 413 Request Entity Too Large Errors in aaPanel]]></title>
			<link>https://adminsforum.com/Thread-guide-fix-413-request-entity-too-large-errors-in-aapanel</link>
			<pubDate>Thu, 15 Oct 2026 11:34:38 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-fix-413-request-entity-too-large-errors-in-aapanel</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 413 “Request Entity Too Large” response can come from a request-size limit before PHP handles an upload. Identify the layer returning it, check the matching log and change the smallest relevant limit. Increasing PHP's upload setting alone cannot fix a request rejected by Nginx.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested</span>: Ubuntu 22.04.5 and the aaPanel lab's installed Nginx 1.30.5 binary. We ran a separate temporary Nginx instance listening only on 127.0.0.1, with its own configuration, PID and logs. A 2KiB request failed under a 1KiB limit and reached a dummy 200 handler under a 4KiB limit. We shut down the test instance afterwards. The normal website configuration and PHP settings were not changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record the failed operation</span><br />
Note the hostname/path, time/timezone, method, approximate file size, total request size and HTTP status. Find out whether a small upload works and a larger one fails. A multipart request contains framing and other fields in addition to the file bytes.<br />
Check the browser's failed network request and the response. The wording may vary by Nginx version or another proxy. A CDN, reverse proxy, application or upload service can impose a separate limit; a response logo alone is not proof of the failing layer.<br />
Do not repeatedly submit production imports or other actions that might create duplicate records. Use a controlled test workflow and harmless input.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Match the Nginx access and error logs</span><br />
In the tested aaPanel interface, open Website → PHP Project → the site's Log button → Access log / Error log. Confirm the hostname and source path. Read <a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">the website-log guide</a> for detailed searching and time matching.<br />
Our isolated test access log recorded POST /request-size-check with status 413. Its matching error said:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client intended to send too large body: 2048 bytes</code></div></div>This supported a Nginx request-size diagnosis. It was not evidence of a PHP memory error, missing extension or failed database connection. If your website has no matching request, investigate the correct host/log and any earlier proxy layer before editing PHP.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Understand the tiny lab comparison</span><br />
We sent the same 2,048-byte raw request body in both phases. With the relevant location set to:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_max_body_size 1k;</code></div></div>Nginx returned 413. We changed only that test limit to:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_max_body_size 4k;</code></div></div>After validation and a reload of the isolated instance, the same request received 200 and the dummy response text. The access log recorded both outcomes.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=321" target="_blank" title="">nginx-413-20261015.jpg</a> (Size: 124.89 KB / Downloads: 44)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original experiment, not a terminal screenshot.</span><br />
<br />
The handler returned a fixed message. This demonstrates the Nginx size gate; it does not prove PHP parsed multipart data, an application validated a file or anything was stored successfully. The endpoint was private, no public firewall port was opened and the normal website remained available.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Inspect the effective site configuration</span><br />
For a real aaPanel incident, locate the affected website under Website → PHP Project and inspect its Conf/site configuration. Labels vary by release. Back up the relevant file before changing it and confirm which server/location handles the failing URL.<br />
The Nginx directive can appear in http, server or location context. Check inherited settings and a more specific location rather than assuming a global value controls every route. Avoid adding duplicate directives in the same context or replacing an existing PHP handler with an incomplete example location.<br />
An administrator can inspect the effective configuration privately with the installed binary:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -T</code></div></div>The output can contain private configuration details. Do not upload the entire dump to a public thread.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Choose a finite limit for the actual workflow</span><br />
An illustrative site-level value is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_max_body_size 80m;</code></div></div>This is an example, not a value applied to the existing lab website or a universal recommendation. Place a chosen limit in the appropriate existing context and consider legitimate request size, concurrent uploads, temporary storage and application policy. Setting the Nginx value to zero disables its body-size check; it was not needed for our test.<br />
Keep limits purposeful instead of making every upload unlimited. A narrow policy can be appropriate for a particular route, but it must preserve the route's existing processing/authentication configuration.<br />
If a CDN or another reverse proxy rejects the request earlier, an origin-only change cannot remove that layer's limit. Review the actual service's documented current limits and supported workflow rather than weakening unrelated security controls.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Align PHP and application limits separately</span><br />
When the request reaches PHP, check the site's selected PHP version and its active FPM settings. Relevant settings include upload_max_filesize for an uploaded file and post_max_size for the total POST data. Allow for request overhead and multiple files according to the intended application behavior.<br />
Exceeding PHP's POST limit can leave POST/file data empty, so the application's error may differ from a Nginx 413. Verify the effective serving runtime; a CLI setting may not describe the website's PHP-FPM pool.<br />
Follow <a href="https://adminsforum.com/Thread-guide-change-php-upload-and-memory-limits-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Change PHP Upload and Memory Limits</a> and <a href="https://adminsforum.com/Thread-guide-increase-wordpress-php-upload-limits-in-aapanel-to-64-mb" target="_blank" rel="noopener" class="mycode_url">the tested WordPress 64MB upload guide</a> for those existing workflows. Application/plugin limits, validation and available temporary storage still matter. We did not change PHP limits in this experiment.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Validate and verify a real repair</span><br />
Before reloading the affected site configuration on a normal aaPanel-managed Nginx installation:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -t</code></div></div>Use the panel's supported reload control only after validation succeeds. Our experiment reloaded only its separately configured test process, so the existing website configuration was not involved.<br />
Test a small permitted upload and the intended larger upload through the real application, inspect the response/content and confirm the expected file or record was created. Check fresh logs and a normal page. Do not treat a dummy HTTP 200 as proof that a production upload completed.<br />
Preserve a rollback copy. If a change breaks another route or causes resource pressure, restore the previous configuration, validate and repeat the relevant health checks.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Cleanup and test limits</span><br />
The temporary listener was stopped, its PID file was removed by shutdown and a connection check confirmed its port was closed. The main Nginx configuration hash was unchanged and the normal website health check returned 200.<br />
We retained the private experiment configuration and result logs as documentation. No real uploaded user file, production upload cap, PHP pool or database was modified. The tiny request was chosen to demonstrate the mechanism with bounded work rather than sending large files at a busy server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span>: <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size" target="_blank" rel="noopener" class="mycode_url">Nginx client_max_body_size</a> and <a href="https://www.php.net/manual/en/ini.core.php#ini.post-max-size" target="_blank" rel="noopener" class="mycode_url">PHP POST-size configuration</a>.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 413 “Request Entity Too Large” response can come from a request-size limit before PHP handles an upload. Identify the layer returning it, check the matching log and change the smallest relevant limit. Increasing PHP's upload setting alone cannot fix a request rejected by Nginx.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested</span>: Ubuntu 22.04.5 and the aaPanel lab's installed Nginx 1.30.5 binary. We ran a separate temporary Nginx instance listening only on 127.0.0.1, with its own configuration, PID and logs. A 2KiB request failed under a 1KiB limit and reached a dummy 200 handler under a 4KiB limit. We shut down the test instance afterwards. The normal website configuration and PHP settings were not changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Record the failed operation</span><br />
Note the hostname/path, time/timezone, method, approximate file size, total request size and HTTP status. Find out whether a small upload works and a larger one fails. A multipart request contains framing and other fields in addition to the file bytes.<br />
Check the browser's failed network request and the response. The wording may vary by Nginx version or another proxy. A CDN, reverse proxy, application or upload service can impose a separate limit; a response logo alone is not proof of the failing layer.<br />
Do not repeatedly submit production imports or other actions that might create duplicate records. Use a controlled test workflow and harmless input.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Match the Nginx access and error logs</span><br />
In the tested aaPanel interface, open Website → PHP Project → the site's Log button → Access log / Error log. Confirm the hostname and source path. Read <a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">the website-log guide</a> for detailed searching and time matching.<br />
Our isolated test access log recorded POST /request-size-check with status 413. Its matching error said:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client intended to send too large body: 2048 bytes</code></div></div>This supported a Nginx request-size diagnosis. It was not evidence of a PHP memory error, missing extension or failed database connection. If your website has no matching request, investigate the correct host/log and any earlier proxy layer before editing PHP.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Understand the tiny lab comparison</span><br />
We sent the same 2,048-byte raw request body in both phases. With the relevant location set to:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_max_body_size 1k;</code></div></div>Nginx returned 413. We changed only that test limit to:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_max_body_size 4k;</code></div></div>After validation and a reload of the isolated instance, the same request received 200 and the dummy response text. The access log recorded both outcomes.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=321" target="_blank" title="">nginx-413-20261015.jpg</a> (Size: 124.89 KB / Downloads: 44)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original experiment, not a terminal screenshot.</span><br />
<br />
The handler returned a fixed message. This demonstrates the Nginx size gate; it does not prove PHP parsed multipart data, an application validated a file or anything was stored successfully. The endpoint was private, no public firewall port was opened and the normal website remained available.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Inspect the effective site configuration</span><br />
For a real aaPanel incident, locate the affected website under Website → PHP Project and inspect its Conf/site configuration. Labels vary by release. Back up the relevant file before changing it and confirm which server/location handles the failing URL.<br />
The Nginx directive can appear in http, server or location context. Check inherited settings and a more specific location rather than assuming a global value controls every route. Avoid adding duplicate directives in the same context or replacing an existing PHP handler with an incomplete example location.<br />
An administrator can inspect the effective configuration privately with the installed binary:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -T</code></div></div>The output can contain private configuration details. Do not upload the entire dump to a public thread.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Choose a finite limit for the actual workflow</span><br />
An illustrative site-level value is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>client_max_body_size 80m;</code></div></div>This is an example, not a value applied to the existing lab website or a universal recommendation. Place a chosen limit in the appropriate existing context and consider legitimate request size, concurrent uploads, temporary storage and application policy. Setting the Nginx value to zero disables its body-size check; it was not needed for our test.<br />
Keep limits purposeful instead of making every upload unlimited. A narrow policy can be appropriate for a particular route, but it must preserve the route's existing processing/authentication configuration.<br />
If a CDN or another reverse proxy rejects the request earlier, an origin-only change cannot remove that layer's limit. Review the actual service's documented current limits and supported workflow rather than weakening unrelated security controls.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Align PHP and application limits separately</span><br />
When the request reaches PHP, check the site's selected PHP version and its active FPM settings. Relevant settings include upload_max_filesize for an uploaded file and post_max_size for the total POST data. Allow for request overhead and multiple files according to the intended application behavior.<br />
Exceeding PHP's POST limit can leave POST/file data empty, so the application's error may differ from a Nginx 413. Verify the effective serving runtime; a CLI setting may not describe the website's PHP-FPM pool.<br />
Follow <a href="https://adminsforum.com/Thread-guide-change-php-upload-and-memory-limits-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Change PHP Upload and Memory Limits</a> and <a href="https://adminsforum.com/Thread-guide-increase-wordpress-php-upload-limits-in-aapanel-to-64-mb" target="_blank" rel="noopener" class="mycode_url">the tested WordPress 64MB upload guide</a> for those existing workflows. Application/plugin limits, validation and available temporary storage still matter. We did not change PHP limits in this experiment.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Validate and verify a real repair</span><br />
Before reloading the affected site configuration on a normal aaPanel-managed Nginx installation:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -t</code></div></div>Use the panel's supported reload control only after validation succeeds. Our experiment reloaded only its separately configured test process, so the existing website configuration was not involved.<br />
Test a small permitted upload and the intended larger upload through the real application, inspect the response/content and confirm the expected file or record was created. Check fresh logs and a normal page. Do not treat a dummy HTTP 200 as proof that a production upload completed.<br />
Preserve a rollback copy. If a change breaks another route or causes resource pressure, restore the previous configuration, validate and repeat the relevant health checks.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Cleanup and test limits</span><br />
The temporary listener was stopped, its PID file was removed by shutdown and a connection check confirmed its port was closed. The main Nginx configuration hash was unchanged and the normal website health check returned 200.<br />
We retained the private experiment configuration and result logs as documentation. No real uploaded user file, production upload cap, PHP pool or database was modified. The tiny request was chosen to demonstrate the mechanism with bounded work rather than sending large files at a busy server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span>: <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size" target="_blank" rel="noopener" class="mycode_url">Nginx client_max_body_size</a> and <a href="https://www.php.net/manual/en/ini.core.php#ini.post-max-size" target="_blank" rel="noopener" class="mycode_url">PHP POST-size configuration</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fix 403 Forbidden Errors in aaPanel Using Logs]]></title>
			<link>https://adminsforum.com/Thread-guide-fix-403-forbidden-errors-in-aapanel-using-logs</link>
			<pubDate>Wed, 14 Oct 2026 21:18:55 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-fix-403-forbidden-errors-in-aapanel-using-logs</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 403 Forbidden response means the request was denied, but it does not identify the rule or permission responsible. Read the matching error before changing file ownership, enabling directory listings or disabling security controls.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested</span>: aaPanel Free 8.0.7, Ubuntu 22.04.5 and Nginx 1.30.5. We created one temporary public-text fixture, withheld file access to reproduce a permission-related 403, then permitted group read on that file and verified HTTP 200. It was removed afterwards. No application directory, access rule or global service setting was changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the request and the layer denying it</span><br />
Record hostname/path, time/timezone, status, request method, client context and recent changes. Check whether one file, a directory URL, all website pages or only an authenticated action is denied.<br />
Cloudflare/WAF, Nginx and the application can each deny a request. A status or response logo is a clue, not proof of the source. A browser login failure may need account/application evidence rather than filesystem permissions.<br />
For a harmless GET you control:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 15 -D - -o /dev/null https://example.com/affected-path</code></div></div>Replace the hostname/path; use curl.exe and NUL on Windows. Keep certificate validation enabled. Do not test protected data by bypassing an access policy merely to get a successful response.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Match the website's access and error logs</span><br />
In our aaPanel interface: Website → PHP Project → the exact site's Log button → Access log / Error log. Confirm the source path and use Refresh. Read <a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">the website log guide</a> for detailed searching and timestamp checks.<br />
Our test request appeared as 403 in the access log. The corresponding Nginx error named the temporary text file and reported:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>open() ... failed (13: Permission denied)</code></div></div>This supported a filesystem-access diagnosis for that static file. It was different from a missing file (404) or an undefined PHP function (500).<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Inspect the exact file and its parent directories</span><br />
Before a repair, record permissions, owner and group:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ls -l /path/to/affected-file
namei -l /path/to/affected-file</code></div></div>Use the actual path from the matching error. namei displays path components so you can inspect parent-directory traversal as well as the final file. Availability depends on your Linux tools.<br />
A server needs appropriate read access to a served static file and search/traverse access to its parent directories. An unreadable file and a non-traversable parent require different targeted changes. ACLs and platform security controls can also affect access; mode bits alone do not explain every denial.<br />
Our fixture's parents were traversable, and the denied file had mode 000 with owner root and group www. No parent permissions were changed during the test.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Confirm the process that needs access</span><br />
Our Nginx master ran as root, but its workers ran as www:www. The worker identity is the relevant one for this static request; an administrator being able to read the file does not prove the web worker can.<br />
A useful check that avoids full process arguments is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ps -eo user,group,comm</code></div></div>Inspect the Nginx rows. Do not assume that every panel uses www: different services and PHP pools can run under different users. Ownership should follow your deployment model, not a blanket command copied from another server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Apply the smallest justified permission change</span><br />
For our existing fixture ownership root:www, mode 640 gave the owner read/write, the group read and others no access. Because the workers used group www, this permitted the intended static response without allowing them to write to the file.<br />
Our one-file repair was equivalent to:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>chmod 640 /www/wwwroot/adminslab.com/af-http403-lab-20261014.txt</code></div></div>That path was our disposable text fixture. Before adapting the command, verify the intended owner/group and runtime identity, record the original mode and select only the affected file. It does not change ownership or grant a different group access.<br />
This was a file-specific lab example, not a universal website permission preset. Other deployments may use another group or access model. A directory needs traversal permissions, so do not apply file mode 640 recursively to directories.<br />
The existing guide <a href="https://adminsforum.com/Thread-guide-set-file-permissions-and-ownership-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Set File Permissions and Ownership in aaPanel</a> covers the panel controls. Preserve the original mode/owner/group so a real repair can be reversed. Do not recursively apply chmod 777 or give a runtime write access to all application code just to eliminate a 403.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=319" target="_blank" title="">http403-permission-20261014.jpg</a> (Size: 131.87 KB / Downloads: 44)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original experiment, not a panel screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Verify the response and new log evidence</span><br />
After the targeted file change, the same URL returned HTTP 200 with the expected text. The access log recorded 200, no new error entry matched that file, and the normal homepage also returned 200.<br />
No Nginx reload or restart was needed for this filesystem-mode change. If you instead edit a server configuration, validate it and use the supported reload procedure before testing its behavior.<br />
We removed the temporary fixture after verification. The deliberately inaccessible file should not be left as a public test URL. Existing application files and permissions remained untouched.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Distinguish other 403 causes</span><br />
The following are investigation examples, not failures induced in this test:<ul class="mycode_list"><li>Directory URL denied: inspect the intended default document, running/document root and directory-index configuration. A missing expected index is not a reason to expose a directory listing of website files.<br />
</li>
<li>Access-rule denial: inspect the matching Nginx location and ordered allow/deny rules, or the applicable panel access restriction. Confirm whether the denial is intentional before changing it.<br />
</li>
<li>WAF/CDN denial: inspect the corresponding security event and request context. Resolve a verified false positive narrowly; do not disable the whole firewall or WAF as a shortcut.<br />
</li>
<li>Application denial: inspect account role, authentication/session state, CSRF checks and the application logger. A filesystem chmod will not correct an authorization decision.<br />
</li>
<li>Permission denied despite apparently suitable modes: inspect the process identity, parent traversal, ACLs and security-policy evidence. Do not disable the system's protection without establishing the cause.<br />
</li>
</ul>
Several layers can be involved. Compare the same request at the correct layer without publishing private upstream services or weakening authentication.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Be careful with proxy addresses</span><br />
An IP-based access rule may see a CDN/proxy address rather than the visitor address unless trusted real-IP handling is configured correctly. Do not trust arbitrary forwarded headers or whitelist large address ranges without understanding the effective client identity.<br />
Our test used loopback and a local HTTPS request with the correct hostname and certificate validation. It did not audit CDN rules or demonstrate all remote client conditions.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. Retain a rollback and share a small safe excerpt</span><br />
Keep the affected file's original ownership/mode and a backup before a real deployment repair. Retest the denied path, a normal page and relevant authenticated behavior. A new 200 alone is not a success if it accidentally makes protected content public.<br />
For support, include versions, time/timezone, path, status, recent change and the redacted matching message. Remove tokens, visitor IPs, private contact details and unrelated requests. Logs are evidence to interpret, not instructions to execute.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span>: <a href="https://www.gnu.org/software/coreutils/manual/html_node/Mode-Structure.html" target="_blank" rel="noopener" class="mycode_url">GNU file-mode structure</a>, <a href="https://nginx.org/en/docs/http/ngx_http_access_module.html" target="_blank" rel="noopener" class="mycode_url">Nginx access rules</a> and <a href="https://nginx.org/en/docs/http/ngx_http_autoindex_module.html" target="_blank" rel="noopener" class="mycode_url">Nginx directory listings</a>.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A 403 Forbidden response means the request was denied, but it does not identify the rule or permission responsible. Read the matching error before changing file ownership, enabling directory listings or disabling security controls.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested</span>: aaPanel Free 8.0.7, Ubuntu 22.04.5 and Nginx 1.30.5. We created one temporary public-text fixture, withheld file access to reproduce a permission-related 403, then permitted group read on that file and verified HTTP 200. It was removed afterwards. No application directory, access rule or global service setting was changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the request and the layer denying it</span><br />
Record hostname/path, time/timezone, status, request method, client context and recent changes. Check whether one file, a directory URL, all website pages or only an authenticated action is denied.<br />
Cloudflare/WAF, Nginx and the application can each deny a request. A status or response logo is a clue, not proof of the source. A browser login failure may need account/application evidence rather than filesystem permissions.<br />
For a harmless GET you control:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 15 -D - -o /dev/null https://example.com/affected-path</code></div></div>Replace the hostname/path; use curl.exe and NUL on Windows. Keep certificate validation enabled. Do not test protected data by bypassing an access policy merely to get a successful response.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Match the website's access and error logs</span><br />
In our aaPanel interface: Website → PHP Project → the exact site's Log button → Access log / Error log. Confirm the source path and use Refresh. Read <a href="https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors" target="_blank" rel="noopener" class="mycode_url">the website log guide</a> for detailed searching and timestamp checks.<br />
Our test request appeared as 403 in the access log. The corresponding Nginx error named the temporary text file and reported:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>open() ... failed (13: Permission denied)</code></div></div>This supported a filesystem-access diagnosis for that static file. It was different from a missing file (404) or an undefined PHP function (500).<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Inspect the exact file and its parent directories</span><br />
Before a repair, record permissions, owner and group:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ls -l /path/to/affected-file
namei -l /path/to/affected-file</code></div></div>Use the actual path from the matching error. namei displays path components so you can inspect parent-directory traversal as well as the final file. Availability depends on your Linux tools.<br />
A server needs appropriate read access to a served static file and search/traverse access to its parent directories. An unreadable file and a non-traversable parent require different targeted changes. ACLs and platform security controls can also affect access; mode bits alone do not explain every denial.<br />
Our fixture's parents were traversable, and the denied file had mode 000 with owner root and group www. No parent permissions were changed during the test.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Confirm the process that needs access</span><br />
Our Nginx master ran as root, but its workers ran as www:www. The worker identity is the relevant one for this static request; an administrator being able to read the file does not prove the web worker can.<br />
A useful check that avoids full process arguments is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ps -eo user,group,comm</code></div></div>Inspect the Nginx rows. Do not assume that every panel uses www: different services and PHP pools can run under different users. Ownership should follow your deployment model, not a blanket command copied from another server.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Apply the smallest justified permission change</span><br />
For our existing fixture ownership root:www, mode 640 gave the owner read/write, the group read and others no access. Because the workers used group www, this permitted the intended static response without allowing them to write to the file.<br />
Our one-file repair was equivalent to:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>chmod 640 /www/wwwroot/adminslab.com/af-http403-lab-20261014.txt</code></div></div>That path was our disposable text fixture. Before adapting the command, verify the intended owner/group and runtime identity, record the original mode and select only the affected file. It does not change ownership or grant a different group access.<br />
This was a file-specific lab example, not a universal website permission preset. Other deployments may use another group or access model. A directory needs traversal permissions, so do not apply file mode 640 recursively to directories.<br />
The existing guide <a href="https://adminsforum.com/Thread-guide-set-file-permissions-and-ownership-in-aapanel" target="_blank" rel="noopener" class="mycode_url">Set File Permissions and Ownership in aaPanel</a> covers the panel controls. Preserve the original mode/owner/group so a real repair can be reversed. Do not recursively apply chmod 777 or give a runtime write access to all application code just to eliminate a 403.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=319" target="_blank" title="">http403-permission-20261014.jpg</a> (Size: 131.87 KB / Downloads: 44)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original experiment, not a panel screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Verify the response and new log evidence</span><br />
After the targeted file change, the same URL returned HTTP 200 with the expected text. The access log recorded 200, no new error entry matched that file, and the normal homepage also returned 200.<br />
No Nginx reload or restart was needed for this filesystem-mode change. If you instead edit a server configuration, validate it and use the supported reload procedure before testing its behavior.<br />
We removed the temporary fixture after verification. The deliberately inaccessible file should not be left as a public test URL. Existing application files and permissions remained untouched.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Distinguish other 403 causes</span><br />
The following are investigation examples, not failures induced in this test:<ul class="mycode_list"><li>Directory URL denied: inspect the intended default document, running/document root and directory-index configuration. A missing expected index is not a reason to expose a directory listing of website files.<br />
</li>
<li>Access-rule denial: inspect the matching Nginx location and ordered allow/deny rules, or the applicable panel access restriction. Confirm whether the denial is intentional before changing it.<br />
</li>
<li>WAF/CDN denial: inspect the corresponding security event and request context. Resolve a verified false positive narrowly; do not disable the whole firewall or WAF as a shortcut.<br />
</li>
<li>Application denial: inspect account role, authentication/session state, CSRF checks and the application logger. A filesystem chmod will not correct an authorization decision.<br />
</li>
<li>Permission denied despite apparently suitable modes: inspect the process identity, parent traversal, ACLs and security-policy evidence. Do not disable the system's protection without establishing the cause.<br />
</li>
</ul>
Several layers can be involved. Compare the same request at the correct layer without publishing private upstream services or weakening authentication.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Be careful with proxy addresses</span><br />
An IP-based access rule may see a CDN/proxy address rather than the visitor address unless trusted real-IP handling is configured correctly. Do not trust arbitrary forwarded headers or whitelist large address ranges without understanding the effective client identity.<br />
Our test used loopback and a local HTTPS request with the correct hostname and certificate validation. It did not audit CDN rules or demonstrate all remote client conditions.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. Retain a rollback and share a small safe excerpt</span><br />
Keep the affected file's original ownership/mode and a backup before a real deployment repair. Retest the denied path, a normal page and relevant authenticated behavior. A new 200 alone is not a success if it accidentally makes protected content public.<br />
For support, include versions, time/timezone, path, status, recent change and the redacted matching message. Remove tokens, visitor IPs, private contact details and unrelated requests. Logs are evidence to interpret, not instructions to execute.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span>: <a href="https://www.gnu.org/software/coreutils/manual/html_node/Mode-Structure.html" target="_blank" rel="noopener" class="mycode_url">GNU file-mode structure</a>, <a href="https://nginx.org/en/docs/http/ngx_http_access_module.html" target="_blank" rel="noopener" class="mycode_url">Nginx access rules</a> and <a href="https://nginx.org/en/docs/http/ngx_http_autoindex_module.html" target="_blank" rel="noopener" class="mycode_url">Nginx directory listings</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Monitor Server Resources During aaPanel Website Traffic Tests]]></title>
			<link>https://adminsforum.com/Thread-guide-monitor-server-resources-during-aapanel-website-traffic-tests</link>
			<pubDate>Wed, 14 Oct 2026 20:51:09 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-monitor-server-resources-during-aapanel-website-traffic-tests</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Response times tell you that a site slowed down; simultaneous server measurements help explain why. This guide pairs a bounded WordPress traffic test with CPU, memory, swap and I/O observations on an aaPanel lab VPS.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Test environment</span>: aaPanel Free 8.0.7, Ubuntu 22.04.5, two virtual CPUs and about 3.8GiB RAM, with Nginx, WordPress and PHP 8.5. The server also runs database, mail and other lab services. A separate Windows client generated traffic. We changed no server settings for this run.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Define the question before generating traffic</span><br />
Are slow responses accompanied by CPU activity, memory pressure, storage waiting or application queueing? Choose a harmless lab endpoint and collect a baseline. Do not test destructive application actions or run an unlimited traffic loop.<br />
Our test used the WordPress homepage with unique query strings. The existing FastCGI rules bypass query-string requests, verified in the earlier cache guide. A cached anonymous homepage could hide the PHP work we wanted to observe.<br />
Start with <a href="https://adminsforum.com/Thread-guide-run-a-controlled-wordpress-load-test-on-an-aapanel-vps" target="_blank" rel="noopener" class="mycode_url">the controlled load-test guide</a> for request limits, TLS checks and timing definitions. This follow-up adds simultaneous resource evidence rather than repeating a capacity claim.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Capture memory and load snapshots</span><br />
On the lab server, use a private SSH session:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>date -Is
uptime
free -h
cat /proc/meminfo</code></div></div>Record the clock and timezone. The client and server must have reasonably aligned clocks to correlate events. Low free memory alone does not demonstrate a problem; include available memory and swap activity. A load average is also not a direct CPU percentage.<br />
Our MemAvailable snapshots were 2,849,192KiB before and 2,813,252KiB after, approximately 2.72GiB and 2.68GiB. These are two snapshots, not the minimum available memory throughout the run.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Start a finite interval sampler</span><br />
Our existing vmstat utility required no additional package installation. We ran:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>LC_ALL=C vmstat -n -t 1 25</code></div></div>This requests one-second updates and a finite count. Keep the output in a private administration session or log, and note the sampler's start/end time. It should overlap the request phases, not run only after the workload finishes.<br />
The first data row includes activity averages since boot. We excluded it from interval summaries. Process and memory columns are snapshots; later activity columns cover the sampling interval. In this run we retained 24 interval rows across the traffic and surrounding idle time.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the useful columns</span><ul class="mycode_list"><li>r: runnable work; compare repeated values with the CPU count, not one isolated spike.<br />
</li>
<li>b: work blocked waiting for I/O completion.<br />
</li>
<li>us and sy: user and kernel CPU percentages. Our CPU activity summary used 100 minus idle, I/O wait and steal.<br />
</li>
<li>id, wa and st: idle, I/O-wait and virtual-machine steal percentages; these describe different conditions.<br />
</li>
<li>si and so: swap-in and swap-out activity. Existing swap usage without current transfers is different from sustained swapping.<br />
</li>
<li>bi and bo: block input/output activity. These alone do not identify which disk or application is responsible.<br />
</li>
</ul>
Check the local manual for units and version details. Small one-second samples can hide shorter spikes, while whole-server measurements combine activity from every service.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Run a bounded client workload</span><br />
We used 80 requests at concurrency 4, followed by 80 at concurrency 8. Every request used HTTPS with normal certificate validation, a 15-second maximum time and no retry. The run would stop before a later phase if any request failed or its sample p95 TTFB exceeded five seconds.<br />
The generator ran off the VPS, so its local client work did not consume the VPS CPUs being measured. It used a finite worker pool: after one request completed, a worker could submit another. This closed-loop workload does not reproduce every real traffic pattern.<br />
Keep important service health under observation and stop if your lab becomes unstable. Do not increase concurrency just to force a failure.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Compare the recorded results</span><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=297" target="_blank" title="">monitor-load-20261014.jpg</a> (Size: 128.09 KB / Downloads: 48)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original measurements, not a terminal screenshot.</span><br />
<ul class="mycode_list"><li>Concurrency 4: 80/80 HTTP 200, median TTFB 313ms, sample p95 467ms, elapsed phase about 10.20 seconds.<br />
</li>
<li>Concurrency 8: 80/80 HTTP 200, median TTFB 414ms, sample p95 539ms, elapsed phase about 5.76 seconds.<br />
</li>
<li>Across the 24 resource intervals: CPU activity peaked at 88%, I/O wait at 0%, steal at 1%, and runnable work at 6.<br />
</li>
<li>Every interval reported zero swap-in and zero swap-out; available-memory snapshots remained about 2.7GiB.<br />
</li>
</ul>
The higher-concurrency phase completed its finite batch sooner but had higher median latency. These short phases were not repeated in randomized order, and other lab services may contribute to whole-server CPU activity.<br />
The resource summary includes idle time around the test. Its peak values should not be confused with a phase average. We did not measure FPM queue lengths, individual query timing, per-process CPU attribution or device latency in this run.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Form a hypothesis without overstating it</span><br />
The observations do not show sampled swap pressure or I/O-wait activity. CPU work is a plausible next investigation because activity increased during this request workload. They do not prove that CPU is the only bottleneck or that the VPS can sustain this traffic indefinitely.<br />
For a stronger diagnosis, correlate process CPU, private FPM queue/status observations and application timings with the same request timestamps. Read <a href="https://adminsforum.com/Thread-guide-find-slow-php-requests-in-aapanel-with-php-fpm-slow-logs" target="_blank" rel="noopener" class="mycode_url">the PHP slow-log guide</a> to locate executing requests and <a href="https://adminsforum.com/Thread-guide-tune-mariadb-queries-in-aapanel-with-explain-and-index-tests" target="_blank" rel="noopener" class="mycode_url">the database index guide</a> when SQL is implicated.<br />
If storage is suspected, collect device-level latency and queue information as a separate test. A sampled wa value of zero is not proof that every storage operation was instantaneous.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Choose the next change from evidence</span><br />
CPU-heavy PHP work may benefit from application improvements or appropriate caching; adding workers can increase contention. Memory pressure calls for examining actual process use and service budgets. Slow SQL calls for a query plan, not an arbitrary increase to max_connections.<br />
Change one variable, retain a rollback copy and repeat the same workload with the sampler running. Check content correctness and errors as well as speed. HTTP 200 alone cannot establish that an application returned the intended page.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. Keep the test reproducible</span><br />
Save phase times, raw request outcomes, resource intervals and configuration versions. Keep logs private and remove secrets before sharing. Use representative authenticated and write workflows only in an appropriate disposable test environment.<br />
This test added no public diagnostic endpoint, altered no application data and left server settings unchanged. Longer runs and realistic workload mixes remain necessary for production planning.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Reference</span>: <a href="https://manpages.ubuntu.com/manpages/jammy/man8/vmstat.8.html" target="_blank" rel="noopener" class="mycode_url">Ubuntu vmstat manual</a>.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Response times tell you that a site slowed down; simultaneous server measurements help explain why. This guide pairs a bounded WordPress traffic test with CPU, memory, swap and I/O observations on an aaPanel lab VPS.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Test environment</span>: aaPanel Free 8.0.7, Ubuntu 22.04.5, two virtual CPUs and about 3.8GiB RAM, with Nginx, WordPress and PHP 8.5. The server also runs database, mail and other lab services. A separate Windows client generated traffic. We changed no server settings for this run.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Define the question before generating traffic</span><br />
Are slow responses accompanied by CPU activity, memory pressure, storage waiting or application queueing? Choose a harmless lab endpoint and collect a baseline. Do not test destructive application actions or run an unlimited traffic loop.<br />
Our test used the WordPress homepage with unique query strings. The existing FastCGI rules bypass query-string requests, verified in the earlier cache guide. A cached anonymous homepage could hide the PHP work we wanted to observe.<br />
Start with <a href="https://adminsforum.com/Thread-guide-run-a-controlled-wordpress-load-test-on-an-aapanel-vps" target="_blank" rel="noopener" class="mycode_url">the controlled load-test guide</a> for request limits, TLS checks and timing definitions. This follow-up adds simultaneous resource evidence rather than repeating a capacity claim.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Capture memory and load snapshots</span><br />
On the lab server, use a private SSH session:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>date -Is
uptime
free -h
cat /proc/meminfo</code></div></div>Record the clock and timezone. The client and server must have reasonably aligned clocks to correlate events. Low free memory alone does not demonstrate a problem; include available memory and swap activity. A load average is also not a direct CPU percentage.<br />
Our MemAvailable snapshots were 2,849,192KiB before and 2,813,252KiB after, approximately 2.72GiB and 2.68GiB. These are two snapshots, not the minimum available memory throughout the run.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Start a finite interval sampler</span><br />
Our existing vmstat utility required no additional package installation. We ran:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>LC_ALL=C vmstat -n -t 1 25</code></div></div>This requests one-second updates and a finite count. Keep the output in a private administration session or log, and note the sampler's start/end time. It should overlap the request phases, not run only after the workload finishes.<br />
The first data row includes activity averages since boot. We excluded it from interval summaries. Process and memory columns are snapshots; later activity columns cover the sampling interval. In this run we retained 24 interval rows across the traffic and surrounding idle time.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the useful columns</span><ul class="mycode_list"><li>r: runnable work; compare repeated values with the CPU count, not one isolated spike.<br />
</li>
<li>b: work blocked waiting for I/O completion.<br />
</li>
<li>us and sy: user and kernel CPU percentages. Our CPU activity summary used 100 minus idle, I/O wait and steal.<br />
</li>
<li>id, wa and st: idle, I/O-wait and virtual-machine steal percentages; these describe different conditions.<br />
</li>
<li>si and so: swap-in and swap-out activity. Existing swap usage without current transfers is different from sustained swapping.<br />
</li>
<li>bi and bo: block input/output activity. These alone do not identify which disk or application is responsible.<br />
</li>
</ul>
Check the local manual for units and version details. Small one-second samples can hide shorter spikes, while whole-server measurements combine activity from every service.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Run a bounded client workload</span><br />
We used 80 requests at concurrency 4, followed by 80 at concurrency 8. Every request used HTTPS with normal certificate validation, a 15-second maximum time and no retry. The run would stop before a later phase if any request failed or its sample p95 TTFB exceeded five seconds.<br />
The generator ran off the VPS, so its local client work did not consume the VPS CPUs being measured. It used a finite worker pool: after one request completed, a worker could submit another. This closed-loop workload does not reproduce every real traffic pattern.<br />
Keep important service health under observation and stop if your lab becomes unstable. Do not increase concurrency just to force a failure.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Compare the recorded results</span><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=297" target="_blank" title="">monitor-load-20261014.jpg</a> (Size: 128.09 KB / Downloads: 48)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original measurements, not a terminal screenshot.</span><br />
<ul class="mycode_list"><li>Concurrency 4: 80/80 HTTP 200, median TTFB 313ms, sample p95 467ms, elapsed phase about 10.20 seconds.<br />
</li>
<li>Concurrency 8: 80/80 HTTP 200, median TTFB 414ms, sample p95 539ms, elapsed phase about 5.76 seconds.<br />
</li>
<li>Across the 24 resource intervals: CPU activity peaked at 88%, I/O wait at 0%, steal at 1%, and runnable work at 6.<br />
</li>
<li>Every interval reported zero swap-in and zero swap-out; available-memory snapshots remained about 2.7GiB.<br />
</li>
</ul>
The higher-concurrency phase completed its finite batch sooner but had higher median latency. These short phases were not repeated in randomized order, and other lab services may contribute to whole-server CPU activity.<br />
The resource summary includes idle time around the test. Its peak values should not be confused with a phase average. We did not measure FPM queue lengths, individual query timing, per-process CPU attribution or device latency in this run.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Form a hypothesis without overstating it</span><br />
The observations do not show sampled swap pressure or I/O-wait activity. CPU work is a plausible next investigation because activity increased during this request workload. They do not prove that CPU is the only bottleneck or that the VPS can sustain this traffic indefinitely.<br />
For a stronger diagnosis, correlate process CPU, private FPM queue/status observations and application timings with the same request timestamps. Read <a href="https://adminsforum.com/Thread-guide-find-slow-php-requests-in-aapanel-with-php-fpm-slow-logs" target="_blank" rel="noopener" class="mycode_url">the PHP slow-log guide</a> to locate executing requests and <a href="https://adminsforum.com/Thread-guide-tune-mariadb-queries-in-aapanel-with-explain-and-index-tests" target="_blank" rel="noopener" class="mycode_url">the database index guide</a> when SQL is implicated.<br />
If storage is suspected, collect device-level latency and queue information as a separate test. A sampled wa value of zero is not proof that every storage operation was instantaneous.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Choose the next change from evidence</span><br />
CPU-heavy PHP work may benefit from application improvements or appropriate caching; adding workers can increase contention. Memory pressure calls for examining actual process use and service budgets. Slow SQL calls for a query plan, not an arbitrary increase to max_connections.<br />
Change one variable, retain a rollback copy and repeat the same workload with the sampler running. Check content correctness and errors as well as speed. HTTP 200 alone cannot establish that an application returned the intended page.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. Keep the test reproducible</span><br />
Save phase times, raw request outcomes, resource intervals and configuration versions. Keep logs private and remove secrets before sharing. Use representative authenticated and write workflows only in an appropriate disposable test environment.<br />
This test added no public diagnostic endpoint, altered no application data and left server settings unchanged. Longer runs and realistic workload mixes remain necessary for production planning.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Reference</span>: <a href="https://manpages.ubuntu.com/manpages/jammy/man8/vmstat.8.html" target="_blank" rel="noopener" class="mycode_url">Ubuntu vmstat manual</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Check Website Logs in aaPanel to Troubleshoot Site Errors]]></title>
			<link>https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors</link>
			<pubDate>Wed, 14 Oct 2026 20:48:47 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-check-website-logs-in-aapanel-to-troubleshoot-site-errors</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Start website troubleshooting by recording the failing request, its time and its HTTP status. Then match that request with the website's access log, error log and application evidence. This guide shows a real missing-file diagnosis in aaPanel and explains where to look for other failures.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested</span>: aaPanel Free 8.0.7, Ubuntu 22.04.5 and Nginx 1.30.5. We inspected the native website log viewer, generated one missing-file request, matched its access/error entries and verified a temporary file corrected that request. The test file was removed afterwards. Other error types below are interpretation examples, not deliberately triggered failures.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Write down the symptom before changing anything</span><br />
Record the exact hostname and path, time with timezone, HTTP status, request method, whether all pages fail or one route fails, and the last relevant change. Distinguish a browser connection failure from an HTTP response delivered by a server.<br />
A request may pass through Cloudflare/CDN, Nginx, PHP-FPM and the application. A status code alone does not identify which layer caused it. Avoid restarting every service before collecting the relevant evidence.<br />
For a harmless GET endpoint you control:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 15 -D - -o /dev/null https://example.com/problem-path</code></div></div>Replace the hostname and path. Keep certificate verification enabled. This Linux example shows headers and discards the body; on Windows use curl.exe and NUL. Separately inspect the response content, because HTTP 200 can still contain an application error.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Open the website's native aaPanel logs</span><br />
In our current interface:<ul class="mycode_list"><li>Open Website and select PHP Project.<br />
</li>
<li>Find the exact site row and click Log.<br />
</li>
<li>The Site modification window provides Access log and Error log views, alongside Response log and Log Security Analysis.<br />
</li>
<li>Use Refresh to retrieve current information. The access view offers recent 50, 100, 500 or All lines and displays the source log path.<br />
</li>
</ul>
Labels differ between versions and project types. The main left-menu Logs section is a separate panel-wide entry; do not assume its administrative log is the website's application log. Node/Python projects have their own runtime logging to inspect as well.<br />
Our website access log was /www/wwwlogs/adminslab.com.log; its error log was /www/wwwlogs/adminslab.com.error.log. These are lab paths, not universal names. Confirm the selected website and effective Nginx access_log/error_log directives if the viewer shows no matching entries.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Locate the request in the access log</span><br />
The access log tells you that the server handled a request and records configured fields such as method, path, status and byte count. Our matching entry contained:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>[14/Oct/2026:12:40:54 +0000]
GET /af-log-troubleshooting-missing-20261014.txt HTTP/2.0
404</code></div></div>The full entry used loopback client 127.0.0.1 because our request came from the server itself. For proxied visitor traffic, an address in a log may identify the proxy unless trusted real-IP handling is configured. Do not treat arbitrary forwarded headers as verified visitor identity.<br />
Match the time, hostname, path and method rather than assuming the latest error belongs to your browser. Check browser/CDN caching and timezone differences when the times seem inconsistent.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Match the error log at the same time</span><br />
At 12:40:54 UTC, our error log reported an open() failure for the expected file under /www/wwwroot/adminslab.com, with error 2: No such file or directory.<br />
This supported a missing-file diagnosis for this static test URL. We created only that temporary file at the expected root path and repeated the request. At 12:41:34 UTC the response was HTTP 200 with the intended test content, and the access log recorded 200.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=296" target="_blank" title="">log-troubleshooting-20261014.jpg</a> (Size: 129.35 KB / Downloads: 45)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of our synthetic request and matching log entries, not a screenshot. Unrelated visitor entries are excluded.</span><br />
<br />
We removed the fixture after verification. This was a lab demonstration, not a recommendation to create an empty file whenever a route returns 404. An application route may instead require the right document root or rewrite rules. For WordPress pretty URLs, see <a href="https://adminsforum.com/Thread-guide-fix-wordpress-permalink-404s-in-aapanel-free-edition-nginx" target="_blank" rel="noopener" class="mycode_url">the permalink 404 guide</a>.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Read common messages as clues</span><ul class="mycode_list"><li>No such file or directory: inspect the exact path, document root, deployment contents or upstream socket named by the message. A missing static file and a missing FPM socket have different fixes.<br />
</li>
<li>Permission denied: identify the object, runtime user and required access. Review ownership, parent-directory traversal and applicable security controls; do not recursively apply chmod 777.<br />
</li>
<li>Connection refused while connecting to upstream: inspect the configured upstream and whether the intended service is listening. Check its own error/startup logs before restarting it.<br />
</li>
<li>Upstream timed out: investigate the upstream's workload and dependencies. Raising a timeout without finding the delay can keep resources occupied longer.<br />
</li>
<li>PHP fatal/uncaught exception: locate the application stack and matching runtime log, then review the relevant code, dependency and recent change. A 500 is not always a PHP syntax error.<br />
</li>
</ul>
These are example interpretations. Use the complete message and request context. For 502 troubleshooting, correlate web-server and upstream evidence; do not use HTTP curl against a FastCGI socket as though it were an HTTP endpoint.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Know the difference between PHP-FPM and application logs</span><br />
The lab FPM master error_log was /www/server/php/85/var/log/php-fpm.log. This captures FPM service diagnostics; it is not a guarantee that every PHP application's warning appears there.<br />
A private FPM settings probe confirmed PHP loaded /www/server/php/85/etc/php.ini, with log_errors enabled, display_errors off and no explicit PHP error_log path. An empty PHP error_log value delegates the destination to the SAPI. Inspect the effective runtime, web-server FastCGI error output and application logger rather than assuming a file name.<br />
The CLI runtime can load a different ini file. Never publish phpinfo or stack traces on an unprotected website just to discover a setting. Our probe was outside the web root, used through the private socket and removed afterwards.<br />
PHP slow logs answer a different question: where a long-running worker was executing. Follow <a href="https://adminsforum.com/Thread-guide-find-slow-php-requests-in-aapanel-with-php-fpm-slow-logs" target="_blank" rel="noopener" class="mycode_url">the tested slow-log guide</a> for that workflow.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Check the application logger</span><br />
Frameworks and CMS plugins may capture exceptions in their own log location or service journal. Check the application's documented logging configuration and make sure the runtime can write to its intended private directory.<br />
For WordPress, official debug logging supports a chosen file path while display can remain disabled. Use a staging copy and backup before temporary debug changes; do not expose wp-content/debug.log publicly or leave development debugging enabled on a live site. This article did not alter WordPress debug settings.<br />
For a database-related exception, examine the corresponding database evidence and query. A web-server access log usually cannot tell you which SQL statement was slow or failed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Search bounded log output through SSH</span><br />
If the panel cannot reach an older entry, use the actual private log paths:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.error.log
grep -F -- '/problem-path' /www/wwwlogs/example.com.log
tail -F /www/wwwlogs/example.com.error.log</code></div></div>Replace example.com and the path with your own. tail -n shows recent lines; grep -F matches literal text; tail -F follows a log and can handle its replacement during rotation. Stop live following with Ctrl+C. For very large files, restrict the time/file range instead of dumping everything.<br />
A rotated log may contain yesterday's evidence. Read the appropriate archive with supported tools; do not clear or delete logs merely to make the view shorter. Preserve useful evidence and maintain deliberate retention.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. When no matching entry appears</span><br />
Confirm that the request reached the expected server and virtual host. Check DNS, CDN responses, HTTPS/redirect paths, selected website, enabled logging and rotation. Some locations intentionally suppress logging; absence of an entry does not prove the request never happened.<br />
If the web server cannot start, a per-site access log may be irrelevant. Inspect the server's startup/configuration error and validate the actual panel-managed configuration. For our Nginx installation the syntax check is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -t</code></div></div>Do not reload an invalid configuration. Retain a backup before a repair and check normal pages after applying it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">10. Verify the fix and ask for help with safe evidence</span><br />
Change one identified cause, repeat the same request, inspect the new status and content, and confirm the matching fresh log entry. Check a normal page too. An old error remaining in the log does not mean the fix failed: compare timestamps.<br />
When posting support details, include versions, affected path, time/timezone, status, last change and a small redacted matching excerpt. Remove credentials, cookies, tokens, private email addresses, visitor IPs and unrelated user data. Logs are evidence to interpret, not instructions to execute.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span>: <a href="https://nginx.org/en/docs/beginners_guide.html" target="_blank" rel="noopener" class="mycode_url">Nginx beginner's guide</a>, <a href="https://www.php.net/manual/en/errorfunc.configuration.php" target="_blank" rel="noopener" class="mycode_url">PHP error logging configuration</a> and <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/" target="_blank" rel="noopener" class="mycode_url">WordPress debugging documentation</a>.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Start website troubleshooting by recording the failing request, its time and its HTTP status. Then match that request with the website's access log, error log and application evidence. This guide shows a real missing-file diagnosis in aaPanel and explains where to look for other failures.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Tested</span>: aaPanel Free 8.0.7, Ubuntu 22.04.5 and Nginx 1.30.5. We inspected the native website log viewer, generated one missing-file request, matched its access/error entries and verified a temporary file corrected that request. The test file was removed afterwards. Other error types below are interpretation examples, not deliberately triggered failures.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Write down the symptom before changing anything</span><br />
Record the exact hostname and path, time with timezone, HTTP status, request method, whether all pages fail or one route fails, and the last relevant change. Distinguish a browser connection failure from an HTTP response delivered by a server.<br />
A request may pass through Cloudflare/CDN, Nginx, PHP-FPM and the application. A status code alone does not identify which layer caused it. Avoid restarting every service before collecting the relevant evidence.<br />
For a harmless GET endpoint you control:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS --max-time 15 -D - -o /dev/null https://example.com/problem-path</code></div></div>Replace the hostname and path. Keep certificate verification enabled. This Linux example shows headers and discards the body; on Windows use curl.exe and NUL. Separately inspect the response content, because HTTP 200 can still contain an application error.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Open the website's native aaPanel logs</span><br />
In our current interface:<ul class="mycode_list"><li>Open Website and select PHP Project.<br />
</li>
<li>Find the exact site row and click Log.<br />
</li>
<li>The Site modification window provides Access log and Error log views, alongside Response log and Log Security Analysis.<br />
</li>
<li>Use Refresh to retrieve current information. The access view offers recent 50, 100, 500 or All lines and displays the source log path.<br />
</li>
</ul>
Labels differ between versions and project types. The main left-menu Logs section is a separate panel-wide entry; do not assume its administrative log is the website's application log. Node/Python projects have their own runtime logging to inspect as well.<br />
Our website access log was /www/wwwlogs/adminslab.com.log; its error log was /www/wwwlogs/adminslab.com.error.log. These are lab paths, not universal names. Confirm the selected website and effective Nginx access_log/error_log directives if the viewer shows no matching entries.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Locate the request in the access log</span><br />
The access log tells you that the server handled a request and records configured fields such as method, path, status and byte count. Our matching entry contained:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>[14/Oct/2026:12:40:54 +0000]
GET /af-log-troubleshooting-missing-20261014.txt HTTP/2.0
404</code></div></div>The full entry used loopback client 127.0.0.1 because our request came from the server itself. For proxied visitor traffic, an address in a log may identify the proxy unless trusted real-IP handling is configured. Do not treat arbitrary forwarded headers as verified visitor identity.<br />
Match the time, hostname, path and method rather than assuming the latest error belongs to your browser. Check browser/CDN caching and timezone differences when the times seem inconsistent.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Match the error log at the same time</span><br />
At 12:40:54 UTC, our error log reported an open() failure for the expected file under /www/wwwroot/adminslab.com, with error 2: No such file or directory.<br />
This supported a missing-file diagnosis for this static test URL. We created only that temporary file at the expected root path and repeated the request. At 12:41:34 UTC the response was HTTP 200 with the intended test content, and the access log recorded 200.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=296" target="_blank" title="">log-troubleshooting-20261014.jpg</a> (Size: 129.35 KB / Downloads: 45)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of our synthetic request and matching log entries, not a screenshot. Unrelated visitor entries are excluded.</span><br />
<br />
We removed the fixture after verification. This was a lab demonstration, not a recommendation to create an empty file whenever a route returns 404. An application route may instead require the right document root or rewrite rules. For WordPress pretty URLs, see <a href="https://adminsforum.com/Thread-guide-fix-wordpress-permalink-404s-in-aapanel-free-edition-nginx" target="_blank" rel="noopener" class="mycode_url">the permalink 404 guide</a>.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Read common messages as clues</span><ul class="mycode_list"><li>No such file or directory: inspect the exact path, document root, deployment contents or upstream socket named by the message. A missing static file and a missing FPM socket have different fixes.<br />
</li>
<li>Permission denied: identify the object, runtime user and required access. Review ownership, parent-directory traversal and applicable security controls; do not recursively apply chmod 777.<br />
</li>
<li>Connection refused while connecting to upstream: inspect the configured upstream and whether the intended service is listening. Check its own error/startup logs before restarting it.<br />
</li>
<li>Upstream timed out: investigate the upstream's workload and dependencies. Raising a timeout without finding the delay can keep resources occupied longer.<br />
</li>
<li>PHP fatal/uncaught exception: locate the application stack and matching runtime log, then review the relevant code, dependency and recent change. A 500 is not always a PHP syntax error.<br />
</li>
</ul>
These are example interpretations. Use the complete message and request context. For 502 troubleshooting, correlate web-server and upstream evidence; do not use HTTP curl against a FastCGI socket as though it were an HTTP endpoint.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Know the difference between PHP-FPM and application logs</span><br />
The lab FPM master error_log was /www/server/php/85/var/log/php-fpm.log. This captures FPM service diagnostics; it is not a guarantee that every PHP application's warning appears there.<br />
A private FPM settings probe confirmed PHP loaded /www/server/php/85/etc/php.ini, with log_errors enabled, display_errors off and no explicit PHP error_log path. An empty PHP error_log value delegates the destination to the SAPI. Inspect the effective runtime, web-server FastCGI error output and application logger rather than assuming a file name.<br />
The CLI runtime can load a different ini file. Never publish phpinfo or stack traces on an unprotected website just to discover a setting. Our probe was outside the web root, used through the private socket and removed afterwards.<br />
PHP slow logs answer a different question: where a long-running worker was executing. Follow <a href="https://adminsforum.com/Thread-guide-find-slow-php-requests-in-aapanel-with-php-fpm-slow-logs" target="_blank" rel="noopener" class="mycode_url">the tested slow-log guide</a> for that workflow.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Check the application logger</span><br />
Frameworks and CMS plugins may capture exceptions in their own log location or service journal. Check the application's documented logging configuration and make sure the runtime can write to its intended private directory.<br />
For WordPress, official debug logging supports a chosen file path while display can remain disabled. Use a staging copy and backup before temporary debug changes; do not expose wp-content/debug.log publicly or leave development debugging enabled on a live site. This article did not alter WordPress debug settings.<br />
For a database-related exception, examine the corresponding database evidence and query. A web-server access log usually cannot tell you which SQL statement was slow or failed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Search bounded log output through SSH</span><br />
If the panel cannot reach an older entry, use the actual private log paths:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>tail -n 100 /www/wwwlogs/example.com.error.log
grep -F -- '/problem-path' /www/wwwlogs/example.com.log
tail -F /www/wwwlogs/example.com.error.log</code></div></div>Replace example.com and the path with your own. tail -n shows recent lines; grep -F matches literal text; tail -F follows a log and can handle its replacement during rotation. Stop live following with Ctrl+C. For very large files, restrict the time/file range instead of dumping everything.<br />
A rotated log may contain yesterday's evidence. Read the appropriate archive with supported tools; do not clear or delete logs merely to make the view shorter. Preserve useful evidence and maintain deliberate retention.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">9. When no matching entry appears</span><br />
Confirm that the request reached the expected server and virtual host. Check DNS, CDN responses, HTTPS/redirect paths, selected website, enabled logging and rotation. Some locations intentionally suppress logging; absence of an entry does not prove the request never happened.<br />
If the web server cannot start, a per-site access log may be irrelevant. Inspect the server's startup/configuration error and validate the actual panel-managed configuration. For our Nginx installation the syntax check is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>/www/server/nginx/sbin/nginx -t</code></div></div>Do not reload an invalid configuration. Retain a backup before a repair and check normal pages after applying it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">10. Verify the fix and ask for help with safe evidence</span><br />
Change one identified cause, repeat the same request, inspect the new status and content, and confirm the matching fresh log entry. Check a normal page too. An old error remaining in the log does not mean the fix failed: compare timestamps.<br />
When posting support details, include versions, affected path, time/timezone, status, last change and a small redacted matching excerpt. Remove credentials, cookies, tokens, private email addresses, visitor IPs and unrelated user data. Logs are evidence to interpret, not instructions to execute.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">References</span>: <a href="https://nginx.org/en/docs/beginners_guide.html" target="_blank" rel="noopener" class="mycode_url">Nginx beginner's guide</a>, <a href="https://www.php.net/manual/en/errorfunc.configuration.php" target="_blank" rel="noopener" class="mycode_url">PHP error logging configuration</a> and <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/" target="_blank" rel="noopener" class="mycode_url">WordPress debugging documentation</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Verify WordPress FastCGI Cache Hits and Bypass Rules in aaPanel]]></title>
			<link>https://adminsforum.com/Thread-guide-verify-wordpress-fastcgi-cache-hits-and-bypass-rules-in-aapanel</link>
			<pubDate>Wed, 14 Oct 2026 20:24:21 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-verify-wordpress-fastcgi-cache-hits-and-bypass-rules-in-aapanel</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">FastCGI page caching can let Nginx answer an anonymous request without running PHP. Verify both cache hits and exclusions before relying on it: private or personalized responses must not be served from a shared anonymous cache.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Scope</span>: We tested an existing WordPress FastCGI cache in aaPanel Free 8.0.7 with Nginx and PHP 8.5. This guide verifies the existing setup; it does not claim we installed a new cache or fully audited every authenticated workflow.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the cache layer</span><br />
Page caching stores a rendered HTTP response. OPcache stores compiled PHP bytecode; Redis object caching stores application objects. They solve different problems. A page-cache HIT may avoid PHP, so it cannot be used to measure PHP or SQL tuning alone.<br />
Inspect the website's Nginx configuration and included PHP handler. Our WordPress site included enable-php-85-wpfastcgi.conf and used a WORDPRESS FastCGI cache zone.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Read the rules before testing</span><br />
Our existing rules bypassed POST requests, nonempty query strings, WordPress administrative/login-related paths and cookies matching WordPress login or password-protected content. These rules must be checked against the actual applications on the site.<br />
The handler used both:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>fastcgi_cache_bypass &#36;skip_cache;
fastcgi_no_cache &#36;skip_cache;</code></div></div>The first controls whether an existing cached response is used; the second controls whether the upstream response is stored. A correct private-response policy needs both aspects considered. Do not copy an incomplete location block or override application Set-Cookie behavior blindly.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Inspect cache headers</span><br />
Our configuration exposed Nginx-Cache with the upstream cache status. Your site may use another header or expose none.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS -D - -o /dev/null https://example.com/</code></div></div>Replace the hostname. Read the HTTP status and cache header. HIT means a stored response was served. MISS means the cache did not supply an entry; an eligible response may subsequently be stored. BYPASS means the rules skipped reading the cache. Absence of a header does not prove caching is disabled.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Repeat an anonymous request</span><br />
We sent five sequential requests to the same lab homepage over loopback HTTPS with certificate validation. All five returned HTTP 200 and HIT; median time to first byte was approximately 58ms.<br />
The page was already cached. We did not claim to demonstrate a fresh MISS-to-HIT transition, clear the whole cache or measure maximum throughput. Five requests are a small diagnostic sample.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Check query and cookie exclusions</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS -D - -o /dev/null 'https://example.com/?cache_check=1'
curl -sS -D - -o /dev/null &#92;
  -H 'Cookie: wordpress_logged_in_lab=synthetic-test' https://example.com/
curl -sS -D - -o /dev/null https://example.com/wp-login.php</code></div></div>The query-string request, synthetic login-cookie request and login page each returned HTTP 200 and BYPASS in our lab. The synthetic cookie contains no real login token; it tests the configured cookie-name rule only. It does not authenticate a user or prove actual account privacy end to end.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=293" target="_blank" title="">cache-performance-20261014.jpg</a> (Size: 105.63 KB / Downloads: 38)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original checks, not a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Test actual personalized workflows before rollout</span><br />
With a controlled test account, verify that logged-in pages, shopping carts, checkout, account settings and password-protected content are excluded. Test two separate sessions and inspect rendered content, not just a fast response. Review authorization, cookies, cache keys and application-specific paths.<br />
Our short check did not perform these authenticated workflows. Treat them as required verification before enabling shared page caching for a real personalized application.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify freshness and controlled purging</span><br />
After updating a public test page, confirm when anonymous visitors receive the new content. Purge the relevant cache entry using your supported administration workflow and verify the result. Do not expose an unrestricted public purge endpoint.<br />
Our existing configuration restricted its purge location to loopback. We did not weaken that restriction or perform a global purge for this guide. Cache lifetime and invalidation should match how frequently your pages change.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Troubleshoot a persistent BYPASS or stale page</span><br />
Check whether a query string, cookie, request method or path matches an exclusion. Inspect the effective Nginx configuration and logs. If a public page bypasses unexpectedly, identify the cause rather than deleting all exclusions.<br />
For stale content, check the correct hostname, cache key, purge method and any additional CDN or browser cache. A browser refresh alone may leave server caches untouched.<br />
Back up before changing rules, validate Nginx syntax, reload and repeat both anonymous and private-response tests. Restore the original rules if personalized content is cached or application behavior changes.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Reference</span>: <a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_bypass" target="_blank" rel="noopener" class="mycode_url">Official Nginx FastCGI cache controls</a>.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">FastCGI page caching can let Nginx answer an anonymous request without running PHP. Verify both cache hits and exclusions before relying on it: private or personalized responses must not be served from a shared anonymous cache.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Scope</span>: We tested an existing WordPress FastCGI cache in aaPanel Free 8.0.7 with Nginx and PHP 8.5. This guide verifies the existing setup; it does not claim we installed a new cache or fully audited every authenticated workflow.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Identify the cache layer</span><br />
Page caching stores a rendered HTTP response. OPcache stores compiled PHP bytecode; Redis object caching stores application objects. They solve different problems. A page-cache HIT may avoid PHP, so it cannot be used to measure PHP or SQL tuning alone.<br />
Inspect the website's Nginx configuration and included PHP handler. Our WordPress site included enable-php-85-wpfastcgi.conf and used a WORDPRESS FastCGI cache zone.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Read the rules before testing</span><br />
Our existing rules bypassed POST requests, nonempty query strings, WordPress administrative/login-related paths and cookies matching WordPress login or password-protected content. These rules must be checked against the actual applications on the site.<br />
The handler used both:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>fastcgi_cache_bypass &#36;skip_cache;
fastcgi_no_cache &#36;skip_cache;</code></div></div>The first controls whether an existing cached response is used; the second controls whether the upstream response is stored. A correct private-response policy needs both aspects considered. Do not copy an incomplete location block or override application Set-Cookie behavior blindly.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Inspect cache headers</span><br />
Our configuration exposed Nginx-Cache with the upstream cache status. Your site may use another header or expose none.<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS -D - -o /dev/null https://example.com/</code></div></div>Replace the hostname. Read the HTTP status and cache header. HIT means a stored response was served. MISS means the cache did not supply an entry; an eligible response may subsequently be stored. BYPASS means the rules skipped reading the cache. Absence of a header does not prove caching is disabled.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Repeat an anonymous request</span><br />
We sent five sequential requests to the same lab homepage over loopback HTTPS with certificate validation. All five returned HTTP 200 and HIT; median time to first byte was approximately 58ms.<br />
The page was already cached. We did not claim to demonstrate a fresh MISS-to-HIT transition, clear the whole cache or measure maximum throughput. Five requests are a small diagnostic sample.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Check query and cookie exclusions</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl -sS -D - -o /dev/null 'https://example.com/?cache_check=1'
curl -sS -D - -o /dev/null &#92;
  -H 'Cookie: wordpress_logged_in_lab=synthetic-test' https://example.com/
curl -sS -D - -o /dev/null https://example.com/wp-login.php</code></div></div>The query-string request, synthetic login-cookie request and login page each returned HTTP 200 and BYPASS in our lab. The synthetic cookie contains no real login token; it tests the configured cookie-name rule only. It does not authenticate a user or prove actual account privacy end to end.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=293" target="_blank" title="">cache-performance-20261014.jpg</a> (Size: 105.63 KB / Downloads: 38)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original checks, not a screenshot.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Test actual personalized workflows before rollout</span><br />
With a controlled test account, verify that logged-in pages, shopping carts, checkout, account settings and password-protected content are excluded. Test two separate sessions and inspect rendered content, not just a fast response. Review authorization, cookies, cache keys and application-specific paths.<br />
Our short check did not perform these authenticated workflows. Treat them as required verification before enabling shared page caching for a real personalized application.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Verify freshness and controlled purging</span><br />
After updating a public test page, confirm when anonymous visitors receive the new content. Purge the relevant cache entry using your supported administration workflow and verify the result. Do not expose an unrestricted public purge endpoint.<br />
Our existing configuration restricted its purge location to loopback. We did not weaken that restriction or perform a global purge for this guide. Cache lifetime and invalidation should match how frequently your pages change.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Troubleshoot a persistent BYPASS or stale page</span><br />
Check whether a query string, cookie, request method or path matches an exclusion. Inspect the effective Nginx configuration and logs. If a public page bypasses unexpectedly, identify the cause rather than deleting all exclusions.<br />
For stale content, check the correct hostname, cache key, purge method and any additional CDN or browser cache. A browser refresh alone may leave server caches untouched.<br />
Back up before changing rules, validate Nginx syntax, reload and repeat both anonymous and private-response tests. Restore the original rules if personalized content is cached or application behavior changes.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Reference</span>: <a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_bypass" target="_blank" rel="noopener" class="mycode_url">Official Nginx FastCGI cache controls</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Run a Controlled WordPress Load Test on an aaPanel VPS]]></title>
			<link>https://adminsforum.com/Thread-guide-run-a-controlled-wordpress-load-test-on-an-aapanel-vps</link>
			<pubDate>Wed, 14 Oct 2026 20:22:42 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-run-a-controlled-wordpress-load-test-on-an-aapanel-vps</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A controlled load test helps compare one workload at several concurrency levels. It does not prove how many visitors an entire website can support. This guide records a bounded external-client test and explains the measurements still needed for a production decision.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Environment</span>: two-CPU shared Ubuntu VPS, aaPanel Free 8.0.7, Nginx, WordPress and PHP 8.5. The tested FPM pool had a maximum of eight children and OPcache enabled. Existing FastCGI cache rules bypassed query-string requests. The generator ran on a separate Windows machine.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Choose a safe target and scope</span><br />
Use a lab server you control. Choose a harmless GET endpoint and a finite request count. Exclude actions that create accounts, orders, mail or database writes. Agree a maintenance window for production testing and monitor other services sharing the machine.<br />
Our target was the WordPress homepage with a unique test query on each request. We verified the query rule returned Nginx-Cache: BYPASS before the run. This measures an uncached homepage path, not checkout, search, login or an entire browsing session.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Record the baseline and configuration</span><br />
Write down PHP version, FPM worker limits, cache states, database version and application version/plugins. Keep those constant between phases. Record server memory, swap and CPU before testing; arrange an interval resource sampler if you need to locate saturation.<br />
This run did not collect a simultaneous server resource trace. We therefore report response results without claiming whether PHP, CPU or SQL limited throughput.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Set explicit limits and stop conditions</span><br />
Our client used 40 requests per phase at concurrency 2, then 4, then 8. Each curl request had a 15-second maximum time, used normal HTTPS certificate validation and performed no retries. Later phases would stop if any request failed or the sample p95 time to first byte exceeded five seconds.<br />
A short request count bounds the total work but can miss sustained bottlenecks. Avoid unbounded loops and high concurrency simply to generate a dramatic result. Watch availability and stop manually if important services degrade.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the client measurements</span><br />
A single request example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl.exe -sS --max-time 15 -o NUL &#92;
  -w "%{http_code} %{time_starttransfer} %{time_total}" &#92;
  "https://example.com/?load_test=unique_value"</code></div></div>This is a Windows example: NUL discards the body. Use /dev/null on Linux. Replace the hostname and make each test query unique if your verified rules use query strings to bypass caching. Do not disable certificate checks.<br />
Time to first byte includes client-side connection and network effects as well as server waiting. Total time includes body transfer. An HTTP 200 alone does not prove the content is correct; separately inspect a sample response for application errors.<br />
We used a bounded client worker pool to run the finite requests concurrently, waited for each phase to complete, then calculated its results. These are closed-loop tests: workers submit another request after the previous one finishes, rather than maintaining a fixed independent arrival rate.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Read the actual results</span><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=294" target="_blank" title="">load-performance-20261014.jpg</a> (Size: 124.63 KB / Downloads: 43)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original client test, not a screenshot.</span><br />
<ul class="mycode_list"><li>Concurrency 2: 40/40 HTTP 200; median TTFB 295ms; sample p95 334ms; phase elapsed 8.46 seconds; about 4.73 completed requests/second.<br />
</li>
<li>Concurrency 4: 40/40 HTTP 200; median TTFB 334ms; sample p95 431ms; phase elapsed 4.91 seconds; about 8.15 completed requests/second.<br />
</li>
<li>Concurrency 8: 40/40 HTTP 200; median TTFB 377ms; sample p95 609ms; phase elapsed 2.88 seconds; about 13.87 completed requests/second.<br />
</li>
</ul>
All 120 requests completed with HTTP 200 and no client request failure. Concurrency increased the observed completion rate and latency. The phases were short, were not repeated in randomized order, and did not isolate cache-warmth or resource effects. Do not interpret the numbers as a guaranteed sustained rate or maximum visitors.<br />
The sample p95 is a nearest-rank estimate from forty observations, not a precise long-term tail metric. Network variation and shared-server activity can affect it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Add resource evidence before tuning</span><br />
For a repeat test, sample CPU utilization, iowait, free memory, swap activity, FPM queues and active database work throughout the phases. Private FPM status and slow logs can help locate queueing. Keep diagnostic endpoints private and redact logs before sharing.<br />
If latency rises with CPU saturation, more FPM workers may worsen contention. If queries dominate, inspect SQL plans. If the client itself is saturated, the generator may be the limit. These conclusions need measurements; this run does not establish them.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Repeat a representative workload</span><br />
Use the same test after one targeted change. Include realistic page mixes, authenticated workflows under controlled accounts, writes in a disposable environment and sustained runs appropriate to your service. Measure errors and content correctness alongside latency.<br />
Test anonymous cache HIT and uncached behavior separately. A fast cached homepage cannot prove that private or dynamic pages perform well. Never increase a pool limit solely because a cached benchmark looks good.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Preserve results and restore experimental changes</span><br />
Keep raw request outcomes, timing definitions and configuration snapshots. Remove only your own disposable fixtures when no longer needed. Retain rollback copies for settings changed during earlier tests. This load run itself changed no server configuration or website content.<br />
<br />
Use <a href="https://adminsforum.com/Thread-guide-measure-aapanel-website-performance-before-tuning-your-server" target="_blank" rel="noopener" class="mycode_url">the baseline guide</a>, the measured PHP-FPM pool guide and the database index test as a repeatable series. Present the workload and its limits whenever quoting performance numbers.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A controlled load test helps compare one workload at several concurrency levels. It does not prove how many visitors an entire website can support. This guide records a bounded external-client test and explains the measurements still needed for a production decision.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Environment</span>: two-CPU shared Ubuntu VPS, aaPanel Free 8.0.7, Nginx, WordPress and PHP 8.5. The tested FPM pool had a maximum of eight children and OPcache enabled. Existing FastCGI cache rules bypassed query-string requests. The generator ran on a separate Windows machine.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">1. Choose a safe target and scope</span><br />
Use a lab server you control. Choose a harmless GET endpoint and a finite request count. Exclude actions that create accounts, orders, mail or database writes. Agree a maintenance window for production testing and monitor other services sharing the machine.<br />
Our target was the WordPress homepage with a unique test query on each request. We verified the query rule returned Nginx-Cache: BYPASS before the run. This measures an uncached homepage path, not checkout, search, login or an entire browsing session.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">2. Record the baseline and configuration</span><br />
Write down PHP version, FPM worker limits, cache states, database version and application version/plugins. Keep those constant between phases. Record server memory, swap and CPU before testing; arrange an interval resource sampler if you need to locate saturation.<br />
This run did not collect a simultaneous server resource trace. We therefore report response results without claiming whether PHP, CPU or SQL limited throughput.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">3. Set explicit limits and stop conditions</span><br />
Our client used 40 requests per phase at concurrency 2, then 4, then 8. Each curl request had a 15-second maximum time, used normal HTTPS certificate validation and performed no retries. Later phases would stop if any request failed or the sample p95 time to first byte exceeded five seconds.<br />
A short request count bounds the total work but can miss sustained bottlenecks. Avoid unbounded loops and high concurrency simply to generate a dramatic result. Watch availability and stop manually if important services degrade.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">4. Understand the client measurements</span><br />
A single request example is:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>curl.exe -sS --max-time 15 -o NUL &#92;
  -w "%{http_code} %{time_starttransfer} %{time_total}" &#92;
  "https://example.com/?load_test=unique_value"</code></div></div>This is a Windows example: NUL discards the body. Use /dev/null on Linux. Replace the hostname and make each test query unique if your verified rules use query strings to bypass caching. Do not disable certificate checks.<br />
Time to first byte includes client-side connection and network effects as well as server waiting. Total time includes body transfer. An HTTP 200 alone does not prove the content is correct; separately inspect a sample response for application errors.<br />
We used a bounded client worker pool to run the finite requests concurrently, waited for each phase to complete, then calculated its results. These are closed-loop tests: workers submit another request after the previous one finishes, rather than maintaining a fixed independent arrival rate.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">5. Read the actual results</span><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=294" target="_blank" title="">load-performance-20261014.jpg</a> (Size: 124.63 KB / Downloads: 43)
<!-- end: postbit_attachments_attachment --><br />
<span style="font-style: italic;" class="mycode_i">AdminsForum formatted transcript of the original client test, not a screenshot.</span><br />
<ul class="mycode_list"><li>Concurrency 2: 40/40 HTTP 200; median TTFB 295ms; sample p95 334ms; phase elapsed 8.46 seconds; about 4.73 completed requests/second.<br />
</li>
<li>Concurrency 4: 40/40 HTTP 200; median TTFB 334ms; sample p95 431ms; phase elapsed 4.91 seconds; about 8.15 completed requests/second.<br />
</li>
<li>Concurrency 8: 40/40 HTTP 200; median TTFB 377ms; sample p95 609ms; phase elapsed 2.88 seconds; about 13.87 completed requests/second.<br />
</li>
</ul>
All 120 requests completed with HTTP 200 and no client request failure. Concurrency increased the observed completion rate and latency. The phases were short, were not repeated in randomized order, and did not isolate cache-warmth or resource effects. Do not interpret the numbers as a guaranteed sustained rate or maximum visitors.<br />
The sample p95 is a nearest-rank estimate from forty observations, not a precise long-term tail metric. Network variation and shared-server activity can affect it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">6. Add resource evidence before tuning</span><br />
For a repeat test, sample CPU utilization, iowait, free memory, swap activity, FPM queues and active database work throughout the phases. Private FPM status and slow logs can help locate queueing. Keep diagnostic endpoints private and redact logs before sharing.<br />
If latency rises with CPU saturation, more FPM workers may worsen contention. If queries dominate, inspect SQL plans. If the client itself is saturated, the generator may be the limit. These conclusions need measurements; this run does not establish them.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">7. Repeat a representative workload</span><br />
Use the same test after one targeted change. Include realistic page mixes, authenticated workflows under controlled accounts, writes in a disposable environment and sustained runs appropriate to your service. Measure errors and content correctness alongside latency.<br />
Test anonymous cache HIT and uncached behavior separately. A fast cached homepage cannot prove that private or dynamic pages perform well. Never increase a pool limit solely because a cached benchmark looks good.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">8. Preserve results and restore experimental changes</span><br />
Keep raw request outcomes, timing definitions and configuration snapshots. Remove only your own disposable fixtures when no longer needed. Retain rollback copies for settings changed during earlier tests. This load run itself changed no server configuration or website content.<br />
<br />
Use <a href="https://adminsforum.com/Thread-guide-measure-aapanel-website-performance-before-tuning-your-server" target="_blank" rel="noopener" class="mycode_url">the baseline guide</a>, the measured PHP-FPM pool guide and the database index test as a repeatable series. Present the workload and its limits whenever quoting performance numbers.]]></content:encoded>
		</item>
	</channel>
</rss>