Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
1.6k views
by
edited

How do you create rules for nginx to get this to work? I saw a discussion on EasyEngine about it. I got it to work to use the user orginal ip address but it somehow crashed my website... Good thing I had a backup... Whew!

Can I create a *.nginx.conf file to make this work properly? I was following the short tutorial below and I thought I need to configure the original nginx file.

https://community.easyengine.io/t/get-real-visitor-ip-behind-cloudflare/9036/2

Updated 11-18-2018//// 

I got it working perfectly with this blog post. :) Just In case anyone else needs this solution to work.

https://ericmathison.com/blog/get-visitors-real-ip-address-with-nginx-and-cloudflare/

by Rookie
I have error with cloudflare, when turn on cloudflare, my wordpress website can not access and show error

[error] 15709#15709: *86035 access forbidden by rule, client: 171.245.59.49, server: My Server request: "GET /cgi-sys/suspendedpage.cgi HTTP/2.0

But when turn off cloudflare (DNS only), my website working ok. Please show me how to fix.

1 Answer

0 votes
by Expert

Hi Mike,

I have no experience with Cloudfare, I don't really know how it works.

If you want to add custom nginx rules, please read the documentation (site command - nginx setup).

Regards.

by
I got it working. Cloudflare is awesome!! It speeds up any website and its free.
by Expert
I'm glad to see you found a solution and thanks for share the link.

Regards.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...