Apache with Seaside and VW 7.8 nc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache with Seaside and VW 7.8 nc

squeakman
Greetings,

I am trying to get Seaside on VW 7.8 running behind Apache 2.22. I am
following the instruction in the seaside book (
http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache).

I am running on Win 7 and here is my httpd-vhosts.conf

-------
NameVirtualHost *:80


<VirtualHost *:80>

     # set server name
     ProxyPreserveHost On
     ServerName localhost

     # configure static file serving
     DocumentRoot /seaside/web
     <Directory /seaside/web>
         Order deny,allow
         Allow from all
     </Directory>

     # rewrite incoming requests
     RewriteEngine On
     RewriteCond /seaside/web%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ http://localhost:7777/seaside/$1 [proxy,last]

</VirtualHost>
--------

when I enter the "localhost/counter" as a url in Firefox I get the
following error message:

Firefox has detected that the server is redirecting the request for this
address in a way that will never complete.

Any clues or pointers would be greatly appreciated.

Thanks,
Frank

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Apache with Seaside and VW 7.8 nc

squeakman
On 04/08/2012 1:59 PM, squeakman wrote:

> -------
> NameVirtualHost *:80
>
>
> <VirtualHost *:80>
>
>      # set server name
>      ProxyPreserveHost On
>      ServerName localhost
>
>      # configure static file serving
>      DocumentRoot /seaside/web
>      <Directory /seaside/web>
>          Order deny,allow
>          Allow from all
>      </Directory>
>
>      # rewrite incoming requests
>      RewriteEngine On
>      RewriteCond /seaside/web%{REQUEST_FILENAME} !-f
>     RewriteRule ^/(.*)$ http://localhost:7777/seaside/$1 [proxy,last]
>
> </VirtualHost>
> --------
>

Just as I feared, shortly after submitting this question I have what
looks like a solution.

I changed the RewriteRule to:
      RewriteRule ^/(.*)$ http://localhost:7777/$1 [proxy,last]

stripping out the "seaside" bit.  This seems to work.

Thanks,
Frank




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside