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

Hello @bonzo
Sorry for the late reply.
It looks that the the issue is related to your DNS\network rules. As far as I understand Document server works on http, but the issue arises on https. Could you please double-check that document server domain name resolves to necessary ip address.
Also please reproduce the issue and provide us with Document server logs folder. It’s located here:
One more thing:

Document Server version: 7.5.4

Please specify your version of Document server and the guide which you used for installation process.

Thanks @Alexandre , but it looks like I was able to resolve the issue by using the installer for nextcloud/onlyoffice from Univention. I have everything working perfectly now. You folks have a terrific product , thanks!

1 Like