opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fpc-pascal@lists.freepascal.org 22 July 2012 • 3:39PM -0400

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

REPLY TO AUTHOR
 
REPLY TO GROUP




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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@list...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.