Page 1 of 1

Nginx config issue

Posted: Thu Nov 09, 2023 11:42 am
by julien123
Hello,

I am trying to configure forma-lms (LMS 3.3.15) using nginx + php-fpm (7.4) + mysql.

I pass all 6 steps to configure database, all requierements passed. Once install process finish, I can logging to authentication page: http://forma-lms-ip

After that, nginx do a redirection to http://forma-lms-ip/..Lms

I am not a pro with nginx, I send you nginx conf for forma-lms website :

Code: Select all

        serverBlock: |-
          server {
            listen 0.0.0.0:8080;
            root /app;
            index index.html index.php;

            location / {
                try_files $uri $uri/ /app/index.php$is_args$args;
            }

            location ~ \.php$ {
              fastcgi_pass phpfpm-server:9000;
              include fastcgi_params;
            }
          }
Website is located at /app path, my php-fpm service is reachable to "phpfpm-server:9000".

Thanks for your help.

Regards,

Re: Nginx config issue

Posted: Thu Nov 09, 2023 1:02 pm
by alfa24
Sorry but it's not clear what the problem is, and the redirection link is not readable.
Anyway, nginx can act as reverse proxy server for apache, I don't know if Forma can run served directly by Nginx.