[fpc-pascal] Nginx, FastCGI and /module/action vs ?module=module&action=action

leledumbo leledumbo_cool at yahoo.co.id
Sun Jul 22 09:39:33 CEST 2012


I have a web app that works fine with embedded http server, but due to its
current bugs, I need to switch to something more reliable. So I choose
FastCGI and a great web server for this so far is Nginx for me. This is the
configuration for my web:

server {
  listen      80;
  index       /index/home;
  server_name tkd1depok.org www.tkd1depok.org;

  location / {
    fastcgi_pass  localhost:9000;
    fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
    include       fastcgi_params;
  }
}

It runs OK, but I can't use /module/action syntax, I have to use GET style
(?module=module&action=action) to get the correct execution. Furthermore, it
can't also use action without setting ActionVar of the module (which is not
required for embedded server), proven by GetActionName in fphttp returning
empty string. So if I would like to use /module/action syntax, is it
possible with fpfcgi?



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Nginx-FastCGI-and-module-action-vs-module-module-action-action-tp5710411.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list