[nginx website] run mutiple websites on same port

  • Hi everybody,


    I currently have 2 websites running, but with website nginx plugin I have to define a different port for each of them.


    Each of the websites is installed in its directory: /www/nextcloud; /www/grr


    Do you know a way to force port 443 on all?
    For now, I have a /etc/nginx/sites-enabled/zzz-omv-nginx file that manages my 2 websites.



    I think it would be better to have 1 file per website for it to work.
    Is it possible to define a configuration file with this plugin?




    Thank you in advance for your assistance.

    • Offizieller Beitrag

    I recommend not using the plugin since it is going away in OMV 5.x in favor of docker. Once you are using docker, you can have each site in its own container and then run an nginx-proxy (I use jwilder/nginx-proxy) in a container to list on port 80 to redirect traffic to the appropriate container. This is what I do and it works very well. Some people also use traefik but the setup is a bit more difficult.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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