<br><br><div class="gmail_quote">On 8 October 2010 16:59, António P. P. Almeida <span dir="ltr"><<a href="mailto:appa@perusio.net">appa@perusio.net</a>></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>
> [1 <multipart/alternative (7bit)>] [1.1 <text/plain; ISO-8859-1<br>
> (7bit)>] I am using a FreePascal web module designed for apache<br>
<div class="im">> cgi-bin with nginx.<br>
><br>
> The CGI itself is called spidersample.cgi and contains modules such<br>
> as hello, bye etc.<br>
><br>
> With Apache when spidersample.cgi/hello is called, spidersample.cgi<br>
> gets executed, and passes control to the hello subroutine it<br>
> contains.<br>
><br>
> With nginx instead of executing spidersample.cgi it treats<br>
> spidersample.cgi/hello as meaning a hello file in a spidersample.cgi<br>
> directory, and returns with a 404 error as there is no such<br>
> directory.<br>
><br>
> I suspect it is an easily fixed problem with some rewrite rules in<br>
> the configuration file and it is posted below.<br>
><br>
> =============================================<br>
><br>
> server {<br>
> listen 8118;<br>
> server_name localhost;<br>
> access_log /var/log/nginx/sysman_access.log;<br>
> index index.html;<br>
> root /home/rchurch/Data/Lazarus/CgiApps;<br>
><br>
> location ~ \.cgi$ {<br>
> include /etc/nginx/fastcgi_params;<br>
> fastcgi_pass unix:/tmp/sysman_cgi.sock;<br>
> 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>