[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.

    • Official Post

    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 6.3.7-1 Shaitan | 64 bit | 6.1 proxmox kernel

    plugins :: omvextrasorg 6.1.1 | kvm 6.2.9 | compose 6.6.2 | cputemp 6.1.3 | mergerfs 6.3.5 | zfs 6.0.12


    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!

  • so I have to migrate to OMV5.x
    Last question here:
    Will I have to remove this plugin before migration or will I still have access to my services after?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!