<div>Hi.<br></div><div><br></div><div>Be sure of configure correctly the application "pier":</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'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"><<a href="mailto:tudor@tudorgirba.com" target="_blank">tudor@tudorgirba.com</a>></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 <<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>> wrote:<br>
> Am 20.09.2012 um 06:57 schrieb Tudor Girba:<br>
><br>
>> Hi,<br>
>><br>
>> I am forwarding the message here given that the problem is not Pier specific.<br>
>><br>
>> Any ideas?<br>
>><br>
>> Cheers,<br>
>> Doru<br>
><br>
><br>
>> <VirtualHost *:80><br>
>> # set serer name<br>
>> ProxyPreserveHost On<br>
>> ServerName <a href="http://www.example.com" target="_blank">www.example.com</a><br>
>><br>
>> # connfigure static file serving<br>
>> DocumentRoot /srv/web<br>
>> <Directory /srv/web><br>
>> Order deny,allow<br>
>> Allow from all<br>
>> </Directory><br>
>><br>
>> # rewrite incoming requests<br>
>> RewriteEngine On<br>
>> RewriteRule ^/pier(.*)$ <a href="http://www.example.com" target="_blank">http://www.example.com</a>$1 [redirect,last]<br>
>> RewriteRule ^/files/(.*)$ <a href="http://localhost:8081/files/$1" target="_blank">http://localhost:8081/files/$1</a> [proxy,last]<br>
>> RewriteCond /srv/web/%{REQUEST_FILENAME} !-f<br>
><br>
> This rewrite condition makes sure that any existing file is tried before<br>
> Going on to that rule:<br>
>> RewriteRule ^/(.*)$ <a href="http://localhost:8081/pier/$1" target="_blank">http://localhost:8081/pier/$1</a> [proxy,last]<br>
>> </VirtualHost><br>
><br>
> Long sotry short, if /srv/web contains an index.html, it will be served,<br>
> and your proxy rule won't be tried.<br>
> Try removing the index.html ;)<br>
><br>
> Best<br>
> -Tobias_______________________________________________<br>
> 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>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
<a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
<br>
"Every thing has its own flow"<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>