این مشکل رو عرض میکنم
نمایش نسخه قابل چاپ
روی سرور ما برا هاستینگ litespeed نصب کردیم . الان پیشنهاد میشه کدوم ماژول ها نصب بشه ؟
فرقی نداره روی لایت اسپید هم باید جواب ده
برای Apache نیست فقط، کلا سی پنل، هر وب سروری هم باشه فرقی نمیکنه (این جور گفتن)، ولی Nginx فکر کنم به مشکل بخوره اگر دستی نصب بشه چون با Cpanel درست integrate نمیشه !
هر کسی هم از تو سیپنلش می تونه با یک کلیک Cloud flare رو فعال کنه و لازم نیست دیگه اون چند مرحله رو توی سایشون طی کنه
توی سایتشون هست
بله هست اما فایل رو دانلود و آپلود کردم توی روت و دستوری رو که گفته شده دادم اما به نتجه ای نرسیدم برای همین گفتم دوستانی که در این کار هستن بخونن و بگن شکل درست فرمانش چی هست.
کد:Description
Based on mod_remoteip.c, this apache extension will replace the remote_ip variable in user's logs with the correct remote_ip sent from CloudFlare. This also does authentication, only performing the switch for requests originating from 204.93.173.0/24 (by default).
Installation
# apxs2 -a -i -c mod_cloudflare.c
No further configuration is needed. However, if you wish to override the default values, the following directives are exposed:
CloudFlareRemoteIPHeader
This specifies the header which contains the original IP. Default:
CloudFlareRemoteIPHeader CF-Connecting-IP
CloudFlareRemoteIPTrusted*****
This is the IP range from which we will allow the CloudFlareRemoteIPHeader to be used from. Default:
CloudFlareRemoteIPTrusted***** 204.93.240.0/24
CloudFlareRemoteIPTrusted***** 204.93.177.0/24
CloudFlareRemoteIPTrusted***** 204.93.173.0/24
CloudFlareRemoteIPTrusted***** 199.27.128.0/21
CloudFlareRemoteIPTrusted***** 173.245.48.0/20
Note that on some Debian systems, you may have to add a LoadModule directive manually.
This should look like: LoadModule cloudflare_module /usr/lib/apache2/modules/mod_cloudflare.so
Replace /usr/lib/apache2/modules/mod_cloudflare.so with the path to mod_cloudflare.so on your system.
If you cannot find apxs or apxs2, on a Debian or Ubuntu distro you can install this tool with:
# apt-get install apache2-prefork-dev
Notes
If mod_cloudflare and mod_remoteip are enabled on the same web server, the server will crash if they both try to set the remote IP to a different value.
Enabling mod_cloudflare will not effect the performance of Apache in any noticeable manner. AB testing both over LAN and WAN show no equivalent numbers with and without mod_cloudflare.
If you like, you may also add the directive DenyAllButCloudFlare. This will result in all requests from IPs which are not in the CloudFlareRemoteIPTrusted***** range being denied with a status of 403.