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><VirtualHost <a href="http://127.0.0.1:8080">127.0.0.1:8080</a>></div><div> .....</div><div></VirtualHost></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><VirtualHost <a href="http://77.77.66.66:8080">77.77.66.66:8080</a>></div><div> .....</div><div>
</VirtualHost></div><div><br class="webkit-block-placeholder"></div><div><div><VirtualHost <a href="http://77.77.66.65:8080">77.77.66.65:8080</a>></div><div> .....</div><div></VirtualHost></div><div><br class="webkit-block-placeholder">
</div><div><div><VirtualHost <a href="http://77.77.66.64:8080">77.77.66.64:8080</a>></div><div> .....</div><div></VirtualHost></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 <<a href="mailto:propanbutan@gmx.net">propanbutan@gmx.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">"Jamie Quint" wrote:<br>> If I use apache's name based virtual hosts everything works out great,
<br>> however if I use IP based virtual hosts, apache does not direct to<br>> the right virtual host, instead just defaulting to the main Document<br>> Root. I can't seem to find an answer on Google anywhere, so any
<br>> 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'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>