I want to use IP-based virtual hosting (not name based with NameVirtualHost) for purposes of SSL<br><br><div class="gmail_quote">On Jan 18, 2008 8:56 AM,  &lt;<a href="mailto:skateinmars@skateinmars.net">skateinmars@skateinmars.net
</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><br>this seems more an apache issue.<br>Have you got a proper NameVirtualHost directive ?
<br>(e.g. NameVirtualHost *:8080 )<br><div><div></div><div class="Wj3C7c"><br>&gt; Hi,<br>&gt;<br>&gt; I&#39;m looking for comments on my nginx.conf file. I am using nginx to serve<br>&gt; some static content and proxy to apache for some other requests however I
<br>&gt; think there is something wrong with my proxypass settings.<br>&gt;<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 the
<br>&gt; right<br>&gt; virtual host, instead just defaulting to the main Document Root. I can&#39;t<br>&gt; seem to find an answer on Google anywhere, so any feedback is greatly<br>&gt; appreciated (relevant part of nginx.conf
 below).<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; location / {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://127.0.0.1:8080/" target="_blank">http://127.0.0.1:8080/</a>;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_redirect &nbsp; &nbsp; off;<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp; Host &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $host;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp; X-Real-IP &nbsp; &nbsp; &nbsp; &nbsp;$remote_addr;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp; X-Forwarded-For<br>&gt; $proxy_add_x_forwarded_for;<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client_max_body_size &nbsp; &nbsp; &nbsp; 10m;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client_body_buffer_size &nbsp; &nbsp;128k;<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_connect_timeout &nbsp; &nbsp; &nbsp;90;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_send_timeout &nbsp; &nbsp; &nbsp; &nbsp; 90;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_read_timeout &nbsp; &nbsp; &nbsp; &nbsp; 90;<br>&gt;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_buffer_size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4k;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_buffers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4 32k;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_busy_buffers_size &nbsp; &nbsp;64k;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_temp_file_write_size 64k;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; }
<br>&gt;<br><br><br><br></div></div></blockquote></div><br>