Running yunohost while port 80,443 are already open for another machine

Discuss

Hello! I’m currently running yunohost off a raspberry pi 4 for testing purposes. I have another machine on my network that uses casaos and I have port 80 and 443 open for this machine currently. yunohost doesn’t seem to function properly unless I remove port 80 and 443 from my casaos machine then add 80 and 443 to the raspberry pi. Is there a work around so I can use both on the same network at the same time?

You can only forward ports 80/443 to one machine on your router. A simple workaround is to use YunoHost as the entry point:

  • Forward ports 80 and 443 from your router to the YunoHost Machine.

  • Configure your domains on YunoHost.

  • Use the Redirect app to redirect specific domains to your CasaOS machine (or any other host).

This way, YunoHost receives all HTTP/HTTPS traffic and forwards requests for a given domain to the appropriate machine.

https://github.com/YunoHost-Apps/redirect_ynh