Facebook SDKV4 Cannot login - Nginx PHP-FPM -
my localhost website working using facebook sdkv4 on apache. after migration nginx php-fpm cannot login anymore. facebook app config same nothing change except local server.
i'm new nginx searched lot , did not found i'm missing.
here's nginx site config:
server { listen 80; listen [::]:80 ipv6only=on; server_name localhost; root /webroot/site/public_html; index index.php index.html index.htm default.html default.htm; access_log /webroot/site/app/logs/access.log; error_log /webroot/site/app/logs/error.log; location / { try_files $uri $uri/ /index.php?q=$uri; } location ~ \.php$ { fastcgi_param path_info $fastcgi_path_info; fastcgi_param path_translated $document_root$fastcgi_path_info; fastcgi_param script_filename $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_intercept_errors on; include fastcgi_params; } }
i think has session. experience problem before? clue help.
my system: php-fpm 5.6, nginx-1.9.2 installed using homebrew
it seems problem related question sessions missing facebook php sdk (nginx php-fpm)
cannot reply question.
update: turns out csrf_token not created on session using nginx php-fpm 5.6 local server. tried using apache (xampp) server csrf_token created , able login. still don't know whats wrong configuration. clue help.
i figure out!
the problem i'm not able url parameters or arguments. in virtual host config change url rewriting to:
try_files $uri $uri/ /index.php?$args;
to full url including parameters eg. index.php?q=1234
it important use server variables fetch urls instead of using get.
i wasted 1 day figuring out :( there go if experience this.
Comments
Post a Comment