<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Hello,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 3:09 PM, Roger Pack <span dir="ltr"><<a href="mailto:lists@ruby-forum.com" target="_blank">lists@ruby-forum.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">seems for me that any of these work for showing the virtual host (for<br>
followers).<br>
<br>
$http_host $host $server_name<br>
<br></blockquote><div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">The Nginx docs specifies different content for those 3 variables.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">
The $http_host is a subset of the possible values that $host can take.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">$server_name might not reflect what you wish: it will send literally the line which is in the server configuration. It it contains a regular expression, for instance, you'll get it as you typed it in...<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline"></div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I just had to uncomment this line for it to 'take', oddly:<br>
<br>
<br>
#access_log logs/access.log main;<br>
<br>
@nginx dev guys: it would be nice if the default config either<br>
mentioned that both log_format and access_log (commented out) lines need<br>
to be uncommented to take, or for them both to start uncommented<br>
out...to avoid this confusion for others in the future...<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>