diff --git a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/htaccess.sample b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/htaccess.sample
index af6e19784d..e4c7ff3c67 100644
--- a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/htaccess.sample
+++ b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/htaccess.sample
@@ -44,6 +44,11 @@
# RewriteRule (.*) index.php/$1 [L,QSA]
+# Enable X-Sendfile if available. Still needs to be enabled in the config
+
+ XSendFile On
+
+
Order allow,deny
diff --git a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample
index 71f756d8ba..0179445003 100644
--- a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample
+++ b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample
@@ -31,6 +31,14 @@ server {
# Index
index index.php;
+# X-Accel/X-Sendfile. Still needs to be enabled in the config
+ location /file {
+ internal;
+ # FIXME: Change "/path/to/gnusocial/root/" to the folder where
+ # attachments are stored (normally the same as the site root)
+ root /path/to/gnusocial/root/;
+ }
+
# PHP
location ~ ^/(index|install)\.php(/.*)?$ {
#location ^~ /index.php {