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 <<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;">
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 <<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</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;">
Hello!<br>
<div><div></div><div><br>
On Thu, Mar 20, 2008 at 06:35:33PM -0500, Rob Schultz wrote:<br>
<br>
> Hi,<br>
> Today i was configuring nginx to "act" more like apache when using https<br>
> (Apache sets the fastcgi paramater HTTPS to on and this is how phpmyadmin<br>
> detects if you are using https or not) Well i only wanted this paramater to<br>
> be on my https portion of the server so i added it right below my<br>
> 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/domain.com.ssl_access_log<br>
> main;<br>
> error_log /var/log/nginx/domain.com.ssl_error_log<br>
> 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 displaying<br>
> phpinfo() and i get the "No Input file". So after playing around i ended<br>
> up having to add the include directive in my location ~\.php$ section like<br>
> 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 the<br>
> http section for them.<br>
> Also the English wiki states "Directives not set are inherited from the<br>
> outer level. " so that is why i am thinking this is a bug.<br>
<br>
</div></div>No, it's by design and clearly documented at least in russian<br>
docs. 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>