Hangover2
Regular Pleskian
Username:
TITLE
Smart static files processing is only working for lowercase file extensions
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.59 Update #1, Debian 11.9, x86-64,
PROBLEM DESCRIPTION
The "Smart static files processing" under "Apache & nginx Settings" of the hosting panel is only working for lowercase file extensions. Files with e.g. uppercase letters in the file extension are not processed by Nginx alone but Apache instead.
STEPS TO REPRODUCE
- activate "Smart static files processing" under "Apache & nginx Settings" for a domain
- create two files in the public folder:
a) lowercase_file_extension.txt
b) uppercase_file_extension.TXT
- call the files directly in your browser
ACTUAL RESULT
- the request for lowercase_file_extension.txt will be handled by Nginx (proxy_access_ssl_log if SSL is active)
- the request for uppercase_file_extension.TXT is proxied to the Apache (access_ssl_log if SSL is active)
EXPECTED RESULT
- both files should be handled by Nginx alone
ANY ADDITIONAL INFORMATION
- suggested fix for the nginx.conf:
- current implementation
- new implementation
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Smart static files processing is only working for lowercase file extensions
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.59 Update #1, Debian 11.9, x86-64,
PROBLEM DESCRIPTION
The "Smart static files processing" under "Apache & nginx Settings" of the hosting panel is only working for lowercase file extensions. Files with e.g. uppercase letters in the file extension are not processed by Nginx alone but Apache instead.
STEPS TO REPRODUCE
- activate "Smart static files processing" under "Apache & nginx Settings" for a domain
- create two files in the public folder:
a) lowercase_file_extension.txt
b) uppercase_file_extension.TXT
- call the files directly in your browser
ACTUAL RESULT
- the request for lowercase_file_extension.txt will be handled by Nginx (proxy_access_ssl_log if SSL is active)
- the request for uppercase_file_extension.TXT is proxied to the Apache (access_ssl_log if SSL is active)
EXPECTED RESULT
- both files should be handled by Nginx alone
ANY ADDITIONAL INFORMATION
- suggested fix for the nginx.conf:
- current implementation
Code:
location ~ ^/(.*\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|w
off|woff2|xls|xlsx|zip|webp))$
Code:
# ~*: The tilde followed by asterisk sign is used for case insensitive regular expression match against a requested URI.
location ~* ^/(.*\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|w
off|woff2|xls|xlsx|zip|webp))$
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug