Pre-pending context path is a VERY GOOD thing. David we can probably move prepending context path in LiftRules.urlDecorate ... the default implementation will prepend context path but if one wants to do something else they it;s very easy to do. This would imply to change a bit URLDecorator but that's trivial.
Let me know your thoughts. Br's, Marius On Oct 27, 8:09 pm, "David Pollak" <[EMAIL PROTECTED]> wrote: > Lift automatically takes care of prepending the context path to URLs that > Lift rewrites. I had worked on a way around it, but have not finished the > work. > > Is having the context path a bad thing in the URL presented to the > user?http://foo.com/foo/xxx? > > On Mon, Oct 27, 2008 at 2:43 AM, Charles F. Munat <[EMAIL PROTECTED]> wrote: > > > > > > > In vhosts.d/xxx.conf: > > > <VirtualHost 11.22.33.44:80> > > ServerName beta.xxx.org > > ServerAlias beta.xxx.orgwww.beta.xxx.org > > DocumentRoot /var/lib/tomcat6/webapps/xxx/ > > AddDefaultCharset utf-8 > > > <Directory /var/lib/tomcat6/webapps/xxx/> > > Options -Indexes FollowSymLinks > > > AllowOverride All > > Order allow,deny > > Allow from all > > </Directory> > > > RewriteEngine On > > > <LocationMatch "^[^/]"> > > Deny from all > > </LocationMatch> > > > <IfModule mod_proxy.c> > > ProxyRequests Off > > > ProxyPassReverse /http://localhost:8080/xxx/ > > > ProxyPreserveHost On > > > <Proxy *> > > Order deny,allow > > Allow from all > > </Proxy> > > > RewriteRule "^/(images|stylesheets|javascripts)/?(.*)" "$0" [L] > > RewriteCond %{REQUEST_FILENAME} !-f > > RewriteRule "^/(.*)" "http://localhost:8080/xxx/$1" [P,QSA,L] > > </IfModule> > > > AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css > > application/x-javascript text/javascript > > BrowserMatch ^Mozilla/4 gzip-only-text/html > > BrowserMatch ^Mozilla/4\.0[678] no-gzip > > BrowserMatch \bMSIE !no-gzip !gzip-only-text/html > > </VirtualHost> > > > It's passing everything through OK, just prepending /xxx to every link > > -- stylesheets, images, anchors, etc. > > > Chas. > > > David Bernard wrote: > > > How do you configure you're apache proxy ? > > > > On Mon, Oct 27, 2008 at 7:45 AM, Charles F. Munat <[EMAIL PROTECTED]> > > wrote: > > >> I've deployed a beta version of my app to Tomcat, so it's available at > > >> localhost:8080/xxx/ > > > >> Then I proxied Apache over to localhost:8080/xxx/ > > > >> And it works. > > > >> But all the links in my app have /xxx/ prepended to them, so they try to > > >> go to /xxx/xxx/the_link instead of just /xxx/the_link. Lift (or the > > >> container) is plugging the name in there and basing it on the server > > >> root rather than the application root. > > > >> Anyone know how to fix this? > > > >> Thanks, > > > >> Chas. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Collaborative Task Managementhttp://much4.us > Follow me:http://twitter.com/dpp > Git some:http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
