I want to deploy Nextcloud in OpenShift 4.x.
Is there a way how to change the port, where apache runs? The standard image uses 80 as non-root, but to get it running on OpenShift it has to be changed.
Error message:
could not bind to address [::]:80
could not bind to address 0.0.0.0:80 no listening sockets available, shutting down
That is not my question. I asked for an improvement in the original Nextcloud image to define another Apache port with specifications. With this, you can then deploy with a different Apache port in Kubernetes/OpenShift without modifying the image.
This is the second time you have answered me about something completely different from what I asked for.
It’s not about certificate or other hostnames. It is about the Apache port when deploying the container, which has to be changed by predefined parameters. I don’t see a workaround via postscript or other methods as useful.
Well, I sent you a link to the documentation where you can change the port. Where you find such files in your type of container, I don’t know that. But if you know the file you are looking for, you might be able to find it. I won’t have the time to do that for you.
And regarding this, I just wrote why your request is of special interest
because for many people the SSL certificates are important and they care about accessing their Nextcloud through Hotel or other wifis where non-standard ports are often blocked.
I don’t know who creates this image, you can ask them to add such an option to use different ports.
Hi,
to fix the Problem you have to overwrite the 2 Apache config files (000-default.conf & ports.conf) with an ConfigMap in your deployment. Here is an example for that: