0 votes
313 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/

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.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

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

...