Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    webapp behind reverse proxy nginx

    Kopano WebApp
    6
    14
    1109
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      Hi all,

      i build a nginx reverse poxy and want to be able to to get to the webapp true the reverse proxy. i can reach the login site but afte that it cant find the page. This is what i have in nginx

      8d91994f-b136-4e73-a725-ef3d328711f9-image.png

      This shows me the login page howver after i login the url is wrong.

      01ce4ef4-cef6-41cd-a39a-0061c7abd070-image.png

      Does anyone know how to fix this?

      1 Reply Last reply Reply Quote 0
      • A Former User
        A Former User last edited by

        Hi,

        I do not know nginx but for Apache2 you need 2 lines:

        ProxyPass /webapp http://192.168.2.8/webapp
        ProxyPassReverse /webapp http://192.168.2.8/webapp
        

        this also translates from https to http.

        1 Reply Last reply Reply Quote 0
        • Bernd G
          Bernd G last edited by

          I believe your location should be

          location /webapp/
          

          Is the webserver for the webapp using https? The backend server often use only http…

          A Former User 1 Reply Last reply Reply Quote 0
          • A Former User
            A Former User @Bernd G last edited by A Former User

            @Bernd-G

            Hi bern. it is strange i hope you can help me with this. i now have this

            8fdb2eda-94c7-4566-bf8f-39036b4a1c20-image.png

            However now it is linking me to the nginx welcome page.

            and im am using ssl (https) in the backend

            The same thing happens for z-push. I installed ngixn zpush package but if i enter the url from my nginx it also links me to the welcome page.

            3d1bc02b-62f9-4f48-aade-499849973dd2-image.png

            1 Reply Last reply Reply Quote 0
            • thctlo
              thctlo last edited by

              @ckruijntjens said in webapp behind reverse proxy nginx:

              d im am using ssl (https) in the backend

              change the ip to hostname, and this is fixed.

              If the backend is in https, then why try to connect over http?

              client connect to webserver with ip, will enter some vhost, where this ip is configured.
              client connect to webserver with hostname, will enter some vhost, where this hostname is configured.

              Now, for this connection, you might see these probley are 2 diffent vhosts.
              or configure the vhost better, or use hostnames.

              A Former User 1 Reply Last reply Reply Quote 0
              • A Former User
                A Former User @thctlo last edited by

                @thctlo

                Hi i am not connecting over http?

                However if i change the ip to hostname i still being linked to the demo page.

                1 Reply Last reply Reply Quote 0
                • mkoas
                  mkoas last edited by

                  @ckruijntjens it should be something like this:

                  location / {
                  	proxy_pass https://192.168.2.8/webapp;
                  }
                  

                  For further information you could read the docs:
                  http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass

                  A Former User 1 Reply Last reply Reply Quote 0
                  • A Former User
                    A Former User @mkoas last edited by

                    @mkoas

                    Hi when i use this i get the login page but after the login page not found /webapp/webapp

                    1 Reply Last reply Reply Quote 0
                    • mkoas
                      mkoas last edited by

                      That’s because kopano redirects on login via PHP header
                      I don’t know if there is a better solution but on my Installation i simply have a redirect for this URL back to the right one

                      A Former User 2 Replies Last reply Reply Quote 0
                      • A Former User
                        A Former User @mkoas last edited by

                        @mkoas

                        How shouldthat redirect look like?

                        1 Reply Last reply Reply Quote 0
                        • robing
                          robing Kopano (Inactive) last edited by

                          @ckruijntjens ,

                          You need to remove the /webapp from the proxy pass url and add it to the location.

                          location /webapp {
                                      proxy_pass https://192.168.2.8;
                          }
                          

                          Nginx is just adding the location behind the proxy_pass url this is why you get /webapp/webapp in the end

                          Just take a look at the Webmeetings manual there’s an example with WebApp behind a proxy https://documentation.kopano.io/web_meetings_manual/configuration.html#configuring-nginx

                          Regards Robin,

                          Need support?
                          Have a look at https://kopano.com/support/ for options.

                          Helpful resources:
                          https://kopano.com/blog/how-to-get-kopano/
                          https://documentation.kopano.io/
                          https://kb.kopano.io/

                          A Former User 1 Reply Last reply Reply Quote 0
                          • A Former User
                            A Former User @robing last edited by

                            @robing

                            if i enter this i am directed to the nginx welcome page?

                            1 Reply Last reply Reply Quote 0
                            • robing
                              robing Kopano (Inactive) last edited by

                              please check the nginx logs from both servers something should point you to the problem

                              Regards Robin,

                              Need support?
                              Have a look at https://kopano.com/support/ for options.

                              Helpful resources:
                              https://kopano.com/blog/how-to-get-kopano/
                              https://documentation.kopano.io/
                              https://kb.kopano.io/

                              1 Reply Last reply Reply Quote 0
                              • A Former User
                                A Former User @mkoas last edited by

                                @mkoas

                                hi can you post your rule of the redirect please. i can not get it working

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post