| FastCGI Installation and Web Server Configuration / FastCGI GAS configuration on various Web Server | |
Nginx has a fastcgi module. The nginx' fastcgi module is not the same as mod_fastcgi for Apache.
Edit the Web site configuration file (for example, located in /etc/nginx/sites-enabled/default).
...
upstream fcgi_backend {
server 127.0.0.1:6394;
keepalive 32;
}
...
In
this excerpt:...
location /gas/ {
fastcgi_keep_conn on;
fastcgi_pass fcgi_backend;
include fastcgi_params;
}
...
... fastcgi_split_path_info (/gas)(/?.+)$; fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; ...
fastcgi_param SERVER_NAME $server_name;and replace with:
fastcgi_param SERVER_NAME $host;
The fastcgidispatch needs to be started in standalone mode: fastcgidispatch -s.
If this dispatcher fails, it must be restarted manually.