<br><br><div class="gmail_quote">On 8 October 2010 16:59, António P. P. Almeida <span dir="ltr">&lt;<a href="mailto:appa@perusio.net">appa@perusio.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 8 Out 2010 16h02 WEST, <a href="mailto:vfclists@gmail.com">vfclists@gmail.com</a> wrote:<br>
<br>
&gt; [1 &lt;multipart/alternative (7bit)&gt;] [1.1 &lt;text/plain; ISO-8859-1<br>
&gt; (7bit)&gt;] I am using a FreePascal web module designed for apache<br>
<div class="im">&gt; cgi-bin with nginx.<br>
&gt;<br>
&gt; The CGI itself is called spidersample.cgi and contains modules such<br>
&gt; as hello, bye etc.<br>
&gt;<br>
&gt; With Apache when spidersample.cgi/hello is called, spidersample.cgi<br>
&gt; gets executed, and passes control to the hello subroutine it<br>
&gt; contains.<br>
&gt;<br>
&gt; With nginx instead of executing spidersample.cgi it treats<br>
&gt; spidersample.cgi/hello as meaning a hello file in a spidersample.cgi<br>
&gt; directory, and returns with a 404 error as there is no such<br>
&gt; directory.<br>
&gt;<br>
&gt; I suspect it is an easily fixed problem with some rewrite rules in<br>
&gt; the configuration file and it is posted below.<br>
&gt;<br>
&gt; =============================================<br>
&gt;<br>
&gt; server {<br>
&gt; listen          8118;<br>
&gt; server_name     localhost;<br>
&gt; access_log      /var/log/nginx/sysman_access.log;<br>
&gt; index index.html;<br>
&gt; root  /home/rchurch/Data/Lazarus/CgiApps;<br>
&gt;<br>
&gt; location ~ \.cgi$ {<br>
&gt; include /etc/nginx/fastcgi_params;<br>
&gt; fastcgi_pass unix:/tmp/sysman_cgi.sock;<br>
&gt; fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_n$<br>
<br>
</div>Try: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
<font color="#888888"><br></font></blockquote><div><br>That is due to a cut and paste issue from a narrow terminal screen, the real line is just as yours.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888">
--- appa<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>