[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 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7

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

    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!