On Fri, Oct 2, 2009 at 10:34 PM, Mike Hansen <[email protected]> wrote: > > Hello, > > On Sat, Oct 3, 2009 at 12:17 PM, Chris Seberino <[email protected]> wrote: >> >> The wonderful Sage notebook uses relative urls like >> /login and /register. How make Sage notebook use relative urls with >> common base like >> /foo/login and /foo/register instead? >> >> (This is needed for the Apache proxying I'm trying to do.) > > This isn't supported. The best solution is just to use Apache's > mod_rewrite to rewrite the HTTP request before it gets sent to the > Sage server. >
And here's an example: <VirtualHost *> RewriteEngine On ServerName sagenb.org ProxyPass / http://sagenb0:8000/ ProxyPassReverse / http://sagenb0:8000/ DocumentRoot / <Location /> DefaultType text/html </Location> </VirtualHost> William --~--~---------~--~----~------------~-------~--~----~ 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/sage-support URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
