Cloud Computing Insider Awards 2022: Vote for ONLYOFFICE

Error 1003 Direct IP access not allowed Using Nginx Reverse Proxy and Cloudflare


I’ve been working on integrating onlyoffice into my nextcloud server. They are on separate Ubuntu 22.04 servers, both on the local network. I’m using a third server to run a nginx reverse proxy pointing to the apps that I want to access remotely (bitwarden, nextcloud, etc).

For the onlyoffice server, I have used your suggested config for proxy servers in this article.

This is after I made sure the basic welcome page could be access locally via http. Now, of course, I’ve configured the nginx server on the onlyoffice VM to use https as per your instructions. And currently I am just trying to access the URL, before continuing with the integration. That’s when I get this:

Error 1003

Ray ID: … • 2022-08-04 17:31:34 UTC

Direct IP access not allowed

What happened?

You’ve requested an IP address that is part of the Cloudflare network. A valid Host header must be supplied to reach the desired website.

I’m sure it is something simple I’ve missed but I’m still a bit of a newbie and learning a lot.
If you would like to see the config for nginx or any logs, please let me know.
Thanks for your help

P.S. It would seem that I get this error page even if I go to localhost on the server. Not sure if that’s relevant or not…

Document Server version: 7.5.4
Type of installation of the Document Server deb/rpm via nginx
OS: Ubuntu 22.04
Browser version: All