Make a subdomain for Accessing OpenMediaVault Web GUI

  • Hi


    I'm not sure if this has been asked before or whether anyone has thought about doing it, but I would like to set a sub-domain for accessing the WebGUI of OMV. To explain further, I'm setting up Nextcloud inside a Docker container and I would like to keep the default port 80, however, this clashes with OMV's WebGUI also running on that very same port. To be able to run OMV and Nextcloud's web interfaces together, in theory I should be able to run them each on their own sub-domain. For example
    cloud.openmediavault.lan > Nextcloud's Web interface
    admin.openmediavault.lan > OMV's WebGUI
    I know that OMV runs off a NGINX server and it's config file is found at /etc/nginx/sites-enabled/openmediavault-webgui (symbolic link to /etc/nginx/sites-avaliable). Here's the contents of openmediavault-webgui

    I changed line 1 to > server_name admin.openmediavault.lan;


    added 127.0.0.1 admin.openmediavault.lan to the /etc/hosts file


    and finally rebooted OMV. I could still access OMV via its IP address but the new domain name didn't work. I get a couldn't resolve domain error.


    Is there as easy way of doing this or something I'm missing? I don't mind tweaking with the backend of the OS and using a CLI if needed.


    Maybe as a suggestion for future builds could we get more options added to the General Settings > Web Administration page such as setting sub-domains so that this can be done via GUI.


    Many thanks in advance.


    Will

Jetzt mitmachen!

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