For NGINX Servers
If your site is hosted on an NGINX server, you will need to configure it manually to see the real IP addresses of your visitors. ORIV offers two ways to do this — one for i) Individual sites and ii) Another for all sites on the server.Method 1: Configure Real IP for a Single Website
To enable real IP detection for a specific website, log in to your ORIV dashboard and navigate to the site you want to configure. Once there, go to the ‘Tools’ menu and select the ‘NGINX Customization’ option.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Click on the Add New NGINX button to open a configuration popup. In the popup, look for the Select Template dropdown and choose the option ‘Show Real IP – Cloudflare proxied’. Next, move to the ‘Config File Name’ field and enter a filename of your choice.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Then, in the ‘Config File Name’ field, input the necessary configuration rules (you can use the ones provided in the default template or add your own). After filling in the required fields, click the ‘Save Config’ button to apply the changes. This method only affects the selected website. Note: We gave the necessary config, in the Config Content field, You can adjust it if needed.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Method 2: Configure Real IP for All Websites
If you prefer to apply real IP configuration globally for all websites hosted on your server, ORIV makes that possible using custom server commands. To get started, go to your ‘Server’ → ‘Management’ section from the navigation bar. Then click on the ‘Commands’ option from the menu.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Inside the Commands page, select the ‘Run Custom Command’ option. A popup window will appear. In the popup, locate the ‘Command’ field and enter the following bash script. This script creates a configuration file at /etc/nginx/conf.d/show-real-ips-cf-proxied.conf, adds Cloudflare’s IP ranges, sets the correct real IP header, and reloads the NGINX server.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
