<div>Hi.<br></div><div><br></div><div>Be sure of configure correctly the application &quot;pier&quot;:</div><div><br></div><div>Server Hostname: <a href="http://example.com">example.com</a> or <a href="http://www.example.com">www.example.com</a></div>
<div>Server Path: /</div><div>Server Port: 80</div><div>Server Protocol: http</div><div><br></div><div>I got stranges lookups when I don&#39;t configure those (but I have more complex lookups that you describe here).</div>
<div><br></div><div>HTH</div><br><div class="gmail_quote">2012/9/20 Tudor Girba <span dir="ltr">&lt;<a href="mailto:tudor@tudorgirba.com" target="_blank">tudor@tudorgirba.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Tobias,<br>
<br>
Thanks. But, the problem is not there. /srv/web is empty.<br>
<br>
Somehow, it seems that there is another lookup before the request goes<br>
to the below apache config. And I do not know what this is.<br>
<br>
I tried to dig a bit more, and I found that the page resides somewhere<br>
inside /var/www/vhosts/. The question is how to bypass this lookup?<br>
<br>
Cheers,<br>
Doru<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, Sep 20, 2012 at 9:19 AM, Tobias Pape &lt;<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>&gt; wrote:<br>
&gt; Am 20.09.2012 um 06:57 schrieb Tudor Girba:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I am forwarding the message here given that the problem is not Pier specific.<br>
&gt;&gt;<br>
&gt;&gt; Any ideas?<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Doru<br>
&gt;<br>
&gt;<br>
&gt;&gt; &lt;VirtualHost *:80&gt;<br>
&gt;&gt;  # set serer name<br>
&gt;&gt;  ProxyPreserveHost On<br>
&gt;&gt;  ServerName <a href="http://www.example.com" target="_blank">www.example.com</a><br>
&gt;&gt;<br>
&gt;&gt;  # connfigure static file serving<br>
&gt;&gt;  DocumentRoot /srv/web<br>
&gt;&gt;  &lt;Directory /srv/web&gt;<br>
&gt;&gt;    Order deny,allow<br>
&gt;&gt;    Allow from all<br>
&gt;&gt;  &lt;/Directory&gt;<br>
&gt;&gt;<br>
&gt;&gt;  # rewrite incoming requests<br>
&gt;&gt;  RewriteEngine On<br>
&gt;&gt;  RewriteRule ^/pier(.*)$ <a href="http://www.example.com" target="_blank">http://www.example.com</a>$1 [redirect,last]<br>
&gt;&gt;  RewriteRule ^/files/(.*)$ <a href="http://localhost:8081/files/$1" target="_blank">http://localhost:8081/files/$1</a> [proxy,last]<br>
&gt;&gt;  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f<br>
&gt;<br>
&gt; This rewrite condition makes sure that any existing file is tried before<br>
&gt; Going on to that rule:<br>
&gt;&gt;  RewriteRule ^/(.*)$ <a href="http://localhost:8081/pier/$1" target="_blank">http://localhost:8081/pier/$1</a> [proxy,last]<br>
&gt;&gt; &lt;/VirtualHost&gt;<br>
&gt;<br>
&gt; Long sotry short, if /srv/web contains an index.html, it will be served,<br>
&gt; and your proxy rule won&#39;t be tried.<br>
&gt; Try removing the index.html ;)<br>
&gt;<br>
&gt; Best<br>
&gt;         -Tobias_______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
<a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
<br>
&quot;Every thing has its own flow&quot;<br>
_______________________________________________<br>
</div><div class="HOEnZb"><div class="h5">seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>