Volmarg / personal-management-system

Your web application for managing personal data. personal.management.system.inbox@gmail.com
http://personal-management-system.pl/
MIT License
3.19k stars 255 forks source link

unable to configure PMS with nginx #108

Closed ssafhi closed 2 years ago

ssafhi commented 2 years ago

Dear

I tried to configure the server with nginx and it does not work and got 502 is there any needed headers?

Rgards

ssafhi commented 2 years ago

Solved

You need to add

location ~ .php$ { fastcgi_pass php-fpm:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; include fastcgi_params; }

In the reverse proxy

Thanks