Nextcloud Webhost - get to Nextcloud without an address rewrite

NethServer Version: NethServer release 7.2.1511 (rc2)
Module: Nextcloud

It appears that Apache is rewriting the address for Nextcloud.

This forces connections directed to it from my reverse proxy to change the web address to a local IP which destroys external access. I need a method to kill that rewrite and have a flat IP address and folder to access nextcloud through.

If your reverse HTTP proxy supports SSL, you could connect directly to the https:// URL, to workaround the redirect. Does this work for you?

No, that is actually what I have been doing. I point it straight to the SSL address, but I still get a rewritten address to the Local IP address instead of keeping the Domain name the Proxy is listening too.

On a side note, it rewrites it wrong when going through the proxy to have https://(IPaddress)/nextcloud$1 and I have to take the $1 off the address to get to the site.

1 Like

Did you read this? Does it work for you?

https://docs.nextcloud.com/server/9/admin_manual/configuration_server/reverse_proxy_configuration.html#reverse-proxy-configuration

1 Like

I missed that completely and it didn’t even cross my mind that would be a factor from Nextcloud’s perspective. Good catch and thank you. I will give this a try.

2 Likes

Did you give it a try? Does it solve the problem?

Sorry, it has been a busy part of the year with the holidays coming up. I haven’t given this a try yet, but I have high expectations that it will. I seems to fit perfectly. I will try to get this together this weekend.

Thanks for checking in,.

3 Likes

Hi @Walter_Schoenly
We are curious … keep us updated :wink:

P.S. NethServer 7 RC3 “Tiramisù” has been released

2 Likes

Ok, it took some work with the Config.php file but I finally got this working. The documentation that Davidep supplied was what I need. Thank you.

3 Likes

Thank you for the reply.
Please mark as “Solved” The Answer What has helped you

1 Like

I have just the same Problem. Can you tell me your solution? I tried the documentation, but it didnt work.