Knowledge Base


Knowledge Base / XFilesharing Pro / How to ...

Using Cloudflare with XFileSharing (v.2.2 - v.2.5.1)

09/11/2018 10:54 AM
Question

Answer

WARNING: please make sure to implement all points specified in the following article, otherwise you may start experiencing problems with your site's essential functionality.

1) Check that you are using as least v.2.2

2) Make sure that Cloudflare is only active for your main server, and not for your file servers. If you have accidently setup it for as least one of your file server, please disable it.

3) Put your Main server in 'READONLY'. You may need to setup an additional file server (with no Cloudflare) if that was your single server for uploads.

4) Login to each of your file servers with root SSH and point the direct IP of your main server in /etc/hosts file. The records has the following format:

<your_direct_ip> <your_domain> www.<your_domain>

5) Change "Network" -> "Pseudo IPv4" to "Overwrite headers" in Cloudflare settings in order to avoid problems with IPv6 clients

6) Open XFileConfig.pm and set 'accept_cf_connecting_ip' to '1'