Now just trying to think how to word this. Since this isnt right with double negative in the sentance? Anyone have a better suggestion for the text?<br><br>It is possible to use strings, variables and their combination as values. Directives not set are inherited from the outer level only when there is no Directives set in current level.<br>
<br><br><div class="gmail_quote">On Thu, Mar 20, 2008 at 8:01 PM, Rob Schultz &lt;<a href="mailto:rschultz7@gmail.com">rschultz7@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok thanks. I will adjust the English wiki if i can. <br><div><div></div><div class="Wj3C7c"><br><div class="gmail_quote">On Thu, Mar 20, 2008 at 7:55 PM, Maxim Dounin &lt;<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>
<div><div></div><div><br>
On Thu, Mar 20, 2008 at 06:35:33PM -0500, Rob Schultz wrote:<br>
<br>
&gt; Hi,<br>
&gt; &nbsp; &nbsp; &nbsp; Today i was configuring nginx to &quot;act&quot; more like apache when using https<br>
&gt; (Apache sets the fastcgi paramater HTTPS to on and this is how phpmyadmin<br>
&gt; detects if you are using https or not) Well i only wanted this paramater to<br>
&gt; be on my https portion of the server so i added it right below my<br>
&gt; fastcgi_pass directive.<br>
&gt; http {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; include &nbsp; &nbsp; &nbsp; &nbsp; /etc/nginx/mime.types;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; include &nbsp; &nbsp; &nbsp; &nbsp; /etc/nginx/fastcgi_params;<br>
&gt;<br>
&gt; rest of regular config....<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; ##ssl portion<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; server {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;443;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp; &nbsp; <a href="http://domain.com" target="_blank">domain.com</a> <a href="http://www.domain.com" target="_blank">www.domain.com</a>;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ssl on;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ssl_certificate &nbsp; &nbsp; &nbsp; &nbsp; /etc/ssl/nginx/server.crt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ssl_certificate_key &nbsp; &nbsp; /etc/ssl/nginx/server.key;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp; &nbsp; &nbsp;/var/log/nginx/domain.com.ssl_access_log<br>
&gt; main;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_log &nbsp; &nbsp; &nbsp; /var/log/nginx/domain.com.ssl_error_log<br>
&gt; info;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root /var/www/domain.com/htdocs;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location ~ \.php$ {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_pass &nbsp; <a href="http://127.0.0.1:8026" target="_blank">127.0.0.1:8026</a>;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_param &nbsp;HTTPS &nbsp; &nbsp;on;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_index &nbsp; index.php;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location ~* ^.+\.(jpg|jpeg|gif|png)$ {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp; off;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expires &nbsp; &nbsp; &nbsp;30d;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; }<br>
&gt;<br>
&gt; reloaded the configuration file and hit refresh on a php page displaying<br>
&gt; phpinfo() &nbsp;and i get the &quot;No Input file&quot;. So after playing around i ended<br>
&gt; up having to add the include directive in my location ~\.php$ section like<br>
&gt; so<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location ~ \.php$ {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_pass &nbsp; <a href="http://127.0.0.1:8132" target="_blank">127.0.0.1:8132</a>;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include /etc/nginx/fastcgi_params;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_param &nbsp;HTTPS &nbsp; &nbsp;on;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_index &nbsp; index.php;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; So it is looking like adding a fastcgi_param directive is clearing out the<br>
&gt; http section for them.<br>
&gt; Also the English wiki states &quot;Directives not set are inherited from the<br>
&gt; outer level. &quot; so that is why i am thinking this is a bug.<br>
<br>
</div></div>No, it&#39;s by design and clearly documented at least in russian<br>
docs. &nbsp;Probably English wiki needs clarification here.<br>
<br>
Basically, when you set array directive at certan level this<br>
clears everything inherited from upper levels for this array.<br>
This applies to other array directives as well (proxy_add_header,<br>
access_log, etc.).<br>
<font color="#888888"><br>
Maxim Dounin<br>
<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>