Viewing 3 reply threads
  • Author
    Posts
    • #14558

      Hello, I want to create two links one for customers  ( https://helpdesk.company.local ) and one for agents (https://otobo.company.local ) but I can’t set up forwarding from https://helpdesk.company.local  to default page

      https://helpdesk.company.local/otobo/customer.pl

      I use docker installation + nginx as frontend web server. Rewrite rules doesn’t help.

    • #14950
      kps
      Participant

        Hi grumpy_kot,

        What error are you getting or what exactly says the nginx is not working?
        would you like to share your configuration with us? i have set up a nginx and an otobo for testing. It seems to work for me. Here is an example with a very minimalist configuration:


        server {
        listen 80;
        server_name customer.test.local;

        rewrite (^/$) /otobo/customer.pl permanent;
        location / {
        proxy_pass http://localhost:8080;
        }
        }

        Best regards,

        ~ kps

        • #15063

          My customer  part  of otobo nginx config ( Otobo start in docker, but nginx installed from apt debian).

          I don’t understand .. It doesn’t not works, I tried second way, but it does not work too. (in comment #)

           

          http {
          server {
          listen 443 ssl;
          server_name helpdesk.mydomain.com;
          access_log /var/log/nginx/helpdesk.mydomain.com.log;
          error_log /var/log/nginx/helpdesk.mydomain.com.log;

          ssl_certificate /etc/nginx/ssl/fullchain.pem;
          ssl_certificate_key /etc/nginx/ssl/privkey.pem;
          ssl_session_timeout 5m;
          ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
          ssl_dhparam /etc/nginx/ssl/dhparams.pem;
          ssl_ciphers ‘EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH’;
          ssl_prefer_server_ciphers on;
          ssl_session_cache shared:SSL:10m;

          # location = / {
          # return 301 https://helpdesk.mydomain.com/otobo/customer.pl;
          # }

          # if ( $request_filename = / ) {
          # rewrite ^ https://helpdesk.mydomain.com/otobo/customer.pl? permanent;
          # }

          rewrite (^$) /otobo/customer.pl permanent;

          location / {

          proxy_pass http://127.0.0.1:81;
          proxy_set_header Host $host;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-Real-IP $remote_addr;
          }
          }

      • #15064
        kps
        Participant

          Hi grumpy_kot,

          maybe you are missing “/” in your configuration?

          rewrite (^$) /otobo/customer.pl permanent;

          i wrote:

          rewrite (^/$) /otobo/customer.pl permanent;

          in my test configuration that makes the difference ;)

          Maybe you need a other browser or need to clean the cache for testing.

          Best regards

          ~ kps

        • #15086

          Thanks . It Works!

      Viewing 3 reply threads
      • You must be logged in to reply to this topic.