• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue "Header set" in .htaccess not working with "Smart static files processing" enabled

JoeShmoe

New Pleskian
I want to add a HTTP header to images in a certain directory.
However when adding
Code:
Header set test 1
to .htaccess in the directory, the the header isn't added to the files.

Only after disabling "Smart static files processing" the header shows up.

I could just leave it disabled, but Plesk suggests disabling is "only for troubleshooting".
Tested on two servers (centos and ubuntu) with the latest Plesk.
 
  1. "Smart static files processing" means nginx processes the requests without passing it along to apache, serving the files itself directly.
  2. nginx does not use .htaccess. Only Apache does.
  3. So for this to work, you'll need further nginx directives, not .htaccess.
 
Back
Top