The 2nd fastcgi_pass was a miss type. It is the same port as the other. <br><br>Rob Schultz<br><br><div class="gmail_quote">On Thu, Mar 20, 2008 at 6:35 PM, Rob Schultz <<a href="mailto:rschultz7@gmail.com">rschultz7@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
Today i was configuring nginx to "act" more like apache when using<br>
https (Apache sets the fastcgi paramater HTTPS to on and this is how<br>
phpmyadmin detects if you are using https or not) Well i only wanted<br>
this paramater to be on my https portion of the server so i added it<br>
right below my fastcgi_pass directive.<br>
http {<br>
include /etc/nginx/mime.types;<br>
include /etc/nginx/fastcgi_params;<br>
<br>
rest of regular config....<br>
<br>
##ssl portion<br>
server {<br>
listen 443;<br>
server_name <a href="http://domain.com" target="_blank">domain.com</a> <a href="http://www.domain.com" target="_blank">www.domain.com</a>;<br>
<br>
ssl on;<br>
ssl_certificate /etc/ssl/nginx/server.crt;<br>
ssl_certificate_key /etc/ssl/nginx/server.key;<br>
<br>
access_log /var/log/nginx/<br>
domain.com.ssl_access_log main;<br>
error_log /var/log/nginx/<br>
domain.com.ssl_error_log info;<br>
<br>
root /var/www/domain.com/htdocs;<br>
<br>
location ~ \.php$ {<br>
fastcgi_pass <a href="http://127.0.0.1:8026" target="_blank">127.0.0.1:8026</a>;<br>
fastcgi_param HTTPS on;<br>
fastcgi_index index.php;<br>
}<br>
<br>
location ~* ^.+\.(jpg|jpeg|gif|png)$ {<br>
access_log off;<br>
expires 30d;<br>
}<br>
}<br>
}<br>
<br>
reloaded the configuration file and hit refresh on a php page<br>
displaying phpinfo() and i get the "No Input file". So after playing<br>
around i ended up having to add the include directive in my location ~<br>
\.php$ section like so<br>
location ~ \.php$ {<br>
fastcgi_pass <a href="http://127.0.0.1:8132" target="_blank">127.0.0.1:8132</a>;<br>
include /etc/nginx/fastcgi_params;<br>
fastcgi_param HTTPS on;<br>
fastcgi_index index.php;<br>
}<br>
<br>
<br>
<br>
So it is looking like adding a fastcgi_param directive is clearing out<br>
the http section for them.<br>
Also the English wiki states "Directives not set are inherited from<br>
the outer level. " so that is why i am thinking this is a bug.<br>
<br>
I am currently using the 0.6.28 and noticed a new release but by the<br>
changelog doesn't seem like anything changed in the fastcgi module.<br>
<br>
<br>
Thanks,<br>
<font color="#888888">Rob Schultz<br>
</font></blockquote></div><br>