TinyWebDB-PHP icon indicating copy to clipboard operation
TinyWebDB-PHP copied to clipboard

NginX config

Open bertalanimre opened this issue 5 years ago • 0 comments

Hey!

So I'm using CentOS with NginX and honestly I would like to stick to it. Any solution what is the proper NginX setup? I'm trying with the following in the location tag, but I keep getting HTTP 405 Method not allowed:

location /tinydb {
                location ~ \.php$ {
                        fastcgi_pass unix:/var/run/php-fpm/myphp.sock;
                        fastcgi_split_path_info ^(.+\.php)(/.*)$;
                        include fastcgi_params;
                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                }
        }

Please, post an example NginX config, that I could use.

bertalanimre avatar Jul 14 '20 11:07 bertalanimre