Sentora Support Forums
Best way to install mod_cloudflare? - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Best way to install mod_cloudflare? (/showthread.php?tid=2907)



Best way to install mod_cloudflare? - MrKaKisen - 06-22-2016

Hello,

What's the best way to install mod_cloudflare?

It puts it's config in the normal httpd conf.d dir, not sentoras.

Thanks! Smile

SOLUTION FOUND HERE:
http://forums.sentora.org/showthread.php?tid=2907&pid=17267#pid17267
(07-23-2016, 12:42 AM)MrKaKisen Wrote: So, I have a solution:

After downloading the RPM file from CloudFlares website and running RPM with it, I simply added this line to "/etc/sentora/configs/apache/httpd-vhosts.conf":

Code:
Include /etc/httpd/conf.d/cloudflare.conf

I don't know if it matters, but I put it before this line:
Code:
# Now we include the generic VHOST configuration file that holds all Sentora user hosted vhost data Include /etc/sentora/configs/apache/httpd-vhosts.conf

Restarted apache and then I checked the phpInfo, installed.

Hope this helps someone in the future.



RE: Best way to install mod_cloudflare? - Me.B - 06-23-2016

Use that way. There should be no conflict and works fine.

M B


RE: Best way to install mod_cloudflare? - MrKaKisen - 06-23-2016

(06-23-2016, 05:55 PM)Me.B Wrote: Use that way. There should be no conflict and works fine.

M B

Odd, as it doesn't work with just running rpm on the rpm file. :/


RE: Best way to install mod_cloudflare? - Me.B - 06-24-2016

You need to load it in apache main config file.


RE: Best way to install mod_cloudflare? - MrKaKisen - 06-25-2016

(06-24-2016, 03:49 AM)Me.B Wrote: You need to load it in apache main config file.

Aha, in "/etc/sentora/configs/apache/httpd.conf" and then like "Include /blabla/cloudflareconfigblabla/"


RE: Best way to install mod_cloudflare? - MrKaKisen - 07-04-2016

And this is dead again Smile


RE: Best way to install mod_cloudflare? - Me.B - 07-05-2016

Why?

It's not working?


RE: Best way to install mod_cloudflare? - MrKaKisen - 07-23-2016

So, I have a solution:

After downloading the RPM file from CloudFlares website and running RPM with it, I simply added this line to "/etc/sentora/configs/apache/httpd-vhosts.conf":

Code:
Include /etc/httpd/conf.d/cloudflare.conf

I don't know if it matters, but I put it before this line:
Code:
# Now we include the generic VHOST configuration file that holds all Sentora user hosted vhost data Include /etc/sentora/configs/apache/httpd-vhosts.conf

Restarted apache and then I checked the phpInfo, installed.

Hope this helps someone in the future.