• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved How to install x-sendfile and x-accel

ChrisCP

Basic Pleskian
How to install x-sendfile and x-accel? I couldn't find any tutorials. Do i need both x-sendfile and x-accel or which one? I use apache with nginx as reverse proxy and latest version of Obsidian and Centos 7.
 
 
You can enable X-Sendfile by installing via repo and activate it in settings -> Apache webserver.
Enable X-Accel for Nginx, add following code to your additional Nginx config:

location /YOUR_FILE_OR_FOLDER {
internal;
alias /var/www/vhosts/SUBSCRIBTION/DOMAIN/PATH_TO_YOUR_FILE_OR_FOLDER;
}
 
I encountered the same issue as OP: Need those modules setup for WooCommerce. Strangely, no one with knowledge of the process has shared any detailed steps, particularly in Plesk. I'll update what I find here.

Installing Apache x-sendfile: I went to the SSH terminal in Plesk (for beginners, just search SSH in the Plesk search) and pasted the following command:

Code:
sudo apt-get install libapache2-mod-xsendfile && sudo a2enmod xsendfile

Source: Install Apache XSendFIle

While there are more steps in the github link, I only needed the first install command. Afterward, I checked my Apache settings in Plesk and it was already enabled.

Now I'm off to figure out how to add the Nginx config. I'm not sure if I need to find the actual file or paste something into the "additional nginx directives box". I wish a professional would offer some experienced insight in the meantime to solve this ago old hurdle in a concise way. So many people have given up ambitions after encountering problems like this and it's sad.
 
Back
Top