Nextcloud version: 24.0.2 , docker version
Operating system and version (eg, Ubuntu 20.04) : ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25) : apache 2.4.53
PHP version (eg, 7.4) : 8.0.20
nginx proxy manager in docker version V2.9.16
Steps to replicate it:
start a new nextcloud contrainer listen at 192.168.11.39:8084 with http protocol
add a new host in nginx proxy manager
open https://nextcloud.mydomain.com
sometimes it works , sometimes t does’nt
it could return a 502 bad gateway error , or invalid certificate files.
I could always connect to nextcloud with internal IP address , so the nextcloud container should have no problem at all.
I add the new host n nginx proxy manager by following document here
# Reverse Proxy Documentation
**Please note:** Publishing the AIO interface with a valid certificate to the public internet is **not** the goal of this documentation! Instead, the main goal is to publish Nextcloud with a valid certificate to the public internet which is **not** running inside the mastercontainer but in a different container! If you need a valid certificate for the AIO interface, see [point 4](#4-optional-get-a-valid-certificate-for-the-aio-interface).
In order to run Nextcloud behind a reverse proxy, you need to specify the port that the Apache container shall use, add a specific config to your reverse proxy and modify the startup command a bit. All examples below will use port `11000` as example Apache port which will be exposed on the host. Modify it to your needings.
**Attention** The process to run Nextcloud behind a reverse proxy consists of at least these 2 steps:
1. **Configure the reverse proxy! See [point 1](#1-add-this-to-your-reverse-proxy-config)**
1. **Use the in this document provided startup command! See [point 2](#2-use-this-startup-command)**
1. If the reverse proxy is installed on the same host, you should limit the apache container to only listen on localhost. See [point 3](#3-if-the-reverse-proxy-is-installed-on-the-same-host-you-should-configure-the-apache-container-to-only-listen-on-localhost)
- Optional: get a valid certificate for the AIO interface! See [point 4](#4-optional-get-a-valid-certificate-for-the-aio-interface)
- How to debug things? See [point 5](#5-how-to-debug-things)
## 1. Add this to your reverse proxy config
**Please note:** Since the Apache container gets spawned by the mastercontainer, there is **NO** way to provide custom docker labels or custom environmental variables for the Apache container. So please do not attempt to do this because you will fail! Only the documented way will work!
### Apache
<details>
This file has been truncated. show original
please , any suggestions ? or should I provide any other logs ?
Witzker
November 10, 2023, 4:17pm
2
Many of these problems here
BUT no solution
Have you solved it?
Many THX for advice.