Username:
TITLE
Password protection breaks static files access (404 error)
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Product version: Plesk Obsidian 18.0.51.0
OS version: CentOS 7.9.2009 x86_64
Build date: 2023/03/10 09:00
PROBLEM DESCRIPTION
When the directory "/" of a domain is password protected and nginx proxy mode is enabled, requests to static files like "page.html" result in a 404 error.
Installation:
* Default Plesk 18.0.51 installation
nginx settings:
* Proxy mode: enabled
* Smart static files processing: enabled
* Serve static files directly by nginx: disabled
* Enable nginx caching: disabled
* Additional nginx directives: none
STEPS TO REPRODUCE
ACTUAL RESULT
Server returns 404 error
access_ssl_log: "GET /internal-nginx-static-location/page.html HTTP/1.0" 404 960
EXPECTED RESULT
Server returns content of "page.html"
ANY ADDITIONAL INFORMATION
This used to work up and including Plesk 18.0.50 update 2.
Problem first appeared on Plesk 18.0.51
Workaround: Disable "Smart static files processing" or enable "Serve static files directly by nginx" (caution: mod_rewrite rules will not be applied)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Password protection breaks static files access (404 error)
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Product version: Plesk Obsidian 18.0.51.0
OS version: CentOS 7.9.2009 x86_64
Build date: 2023/03/10 09:00
PROBLEM DESCRIPTION
When the directory "/" of a domain is password protected and nginx proxy mode is enabled, requests to static files like "page.html" result in a 404 error.
Installation:
* Default Plesk 18.0.51 installation
nginx settings:
* Proxy mode: enabled
* Smart static files processing: enabled
* Serve static files directly by nginx: disabled
* Enable nginx caching: disabled
* Additional nginx directives: none
STEPS TO REPRODUCE
- Create a domain "example.tld" with above (default) nginx settings
- Create a file "page.html" in the httpdocs of that domain
- Add a password protection on the directoy "/" with a user/pass combination
- Access the page http://example.tld/page.html
ACTUAL RESULT
Server returns 404 error
access_ssl_log: "GET /internal-nginx-static-location/page.html HTTP/1.0" 404 960
EXPECTED RESULT
Server returns content of "page.html"
ANY ADDITIONAL INFORMATION
This used to work up and including Plesk 18.0.50 update 2.
Problem first appeared on Plesk 18.0.51
Workaround: Disable "Smart static files processing" or enable "Serve static files directly by nginx" (caution: mod_rewrite rules will not be applied)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug