I am aware of this, however the problem I am having is that apache can not differentiate because it sees everything coming from nginx as <a href="http://127.0.0.1">127.0.0.1</a> (localhost). Thus the only way it works is if I do the following...
<div><br class="webkit-block-placeholder"></div><div><div>&lt;VirtualHost <a href="http://127.0.0.1:8080">127.0.0.1:8080</a>&gt;</div><div>&nbsp;&nbsp; &nbsp;.....</div><div>&lt;/VirtualHost&gt;</div><div><br class="webkit-block-placeholder">
</div><div>When in reality I want something like this...</div><div><br class="webkit-block-placeholder"></div><div><div>&lt;VirtualHost <a href="http://77.77.66.66:8080">77.77.66.66:8080</a>&gt;</div><div>&nbsp;&nbsp; &nbsp;.....</div><div>
&lt;/VirtualHost&gt;</div><div><br class="webkit-block-placeholder"></div><div><div>&lt;VirtualHost <a href="http://77.77.66.65:8080">77.77.66.65:8080</a>&gt;</div><div>&nbsp;&nbsp; &nbsp;.....</div><div>&lt;/VirtualHost&gt;</div><div><br class="webkit-block-placeholder">
</div><div><div>&lt;VirtualHost <a href="http://77.77.66.64:8080">77.77.66.64:8080</a>&gt;</div><div>&nbsp;&nbsp; &nbsp;.....</div><div>&lt;/VirtualHost&gt;</div></div></div><div><br class="webkit-block-placeholder"></div></div><div>Which I cannot do without having some way to get the IP from behind nginx.
</div><div><br class="webkit-block-placeholder"></div><div>~Jamie</div><div><br><div class="gmail_quote">On Jan 18, 2008 11:56 AM, propanbutan &lt;<a href="mailto:propanbutan@gmx.net">propanbutan@gmx.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">&quot;Jamie Quint&quot; wrote:<br>&gt; If I use apache&#39;s name based virtual hosts everything works out great,
<br>&gt; however if I use IP based virtual hosts, apache does not direct to<br>&gt; the right virtual host, instead just defaulting to the main Document<br>&gt; Root. I can&#39;t seem to find an answer on Google anywhere, so any
<br>&gt; feedback is greatly appreciated (relevant part of nginx.conf below).<br><br></div>Hi,<br>for name based virtual hosts, a web server uses the request Host header<br>to decide which virtual host to dispatch to.<br>
When you use IP based virtual hosts, you need to set them up to listen<br>on different ports and/or ip addresses. If you don&#39;t, apache has no way<br>of knowing which virtual host is the right one, just like you describe.
<br><br><br><br></blockquote></div><br></div></div>