Nginx config for redirect from main domain to subdomain

  • Hi guys,

    I have done it. I have upgraded from omv4 to omv5. I have prepared a lot for this. I have moved from nginx-plugin to swag docker. I created backups with clonezilla, restored in virtualbox. trained the upgrade. Reported my issues during upgrade scripts:

    https://github.com/dleidert/openmediavault-upgrade/issues/14

    https://github.com/dleidert/openmediavault-upgrade/issues/15

    https://github.com/dleidert/openmediavault-upgrade/issues/18

    https://github.com/dleidert/openmediavault-upgrade/issues/22


    So the upgrade went smooth. But even migration to swag was done successfully before upgrade, I get now an internal error in nextcloud. As said it worked before with the same config:

    Code
    Interner Serverfehler
    Der Server konnte die Anfrage nicht fertig stellen.
    Sollte dies erneut auftreten, senden Sie bitte die nachfolgenden technischen Einzelheiten  an Ihren Server-Administrator.
    Weitere Details können im Server-Protokoll gefunden werden.
    Technische Details
    Entfernte Adresse: 172.19.0.2
    Anfragekennung: mQoutHj9MFZrtANQDwZc


    The setup is the following: I had my dyndns domain where I initially hosted nextcloud as main application on main domain. With the migration to swag I wanted to move nextcloud to subdomain as all other applications. To be compatible with old clients, I wanted to redirect main domain to subdomain.maindomain.


    What is the best way to do this? I am doing this:


    in another file:


    Maybe this is not the problem at all...could really need your help. Dont want to go back as everything else is working just as it should.


    Update: issue with nc was solved, but help with nginx and the question above still welcome! :)

    cpu Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    omv 6.9.13-1 (Shaitan)

    kernel 6.1.0-0.deb11.11-amd64

    2 Mal editiert, zuletzt von godfuture ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!