multisite nginx and other web server by port change and proxy reverse with lighttpd

  • since the issue https://github.com/openmediava…0#issuecomment-1017620645 seems running multisites using only the same webserver alongside OMV is not possible..


    i read https://github.com/openmediava…0#issuecomment-1030276154 and found a solution using the reverse proxy setings


    but now i ask: if i change port to 9090 and use reverse proxy from 80 "mynas.domain.net" to "mynas.domain.net:9090" i will have some request/response problems? (of course we must leave aside the webdav plugin.. just we ignore any webdav acess for this question)


    ANEXES:


    my procedure was:


    1. install OMV
    2. change port in web gui from 80 to 9090 in system/workbench
    3. change web server name and domain in network/general
    4. now install the second webserver lighttpd
    5. setup proxy mod and enable it on config file
    6. setup proxy reverse from filtering domain and port to OMV new port but use 127.0.0.1 as target

    as extra guide the rule for reversing was: proxy.server = ( "" => ("" => ( "host" => "0.0.0.0", "port" => 9090 )))

    as extra guide the filter for domain was $HTTP["host"] =~ "mynas\.domain\.net"

  • mckaygerhard

    Changed the title of the thread from “multisite nginx and other web server by prot change and proxy reverse” to “multisite nginx and other web server by port change and proxy reverse with lighttpd”.
  • This will not work because APT will throw an error or will uninstall nginx because two web servers can not co-exist. This is how Debian is handling that.


    You need to run it in a container.

    i already do it and works.. no conflicts due the changed port from OMV


    I my question is that if something happens around reverse proxy???.. currently seems to work but i am not expert in the request/response of the web gui around reverse proxy pass..

  • well after 10 days using this setup i conclude there is no issue around the proxy reverse so we can have multisited if we changed the OMV ports and definitions on servers..


    software like NEXTCLOUD give me many problems when i perform a reverse proxy (means i setup a domain to redirect to the port of the web software...)


    now i need a way to do this non-interactive as i asked in OVM comand line way to change port and web listen server gui address

Participate now!

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