On 3 říj, 08:37, William Stein <[email protected]> wrote: > 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> >
and perhaps the following line is also necesay in apache2.conf or htpd.conf listen 8000 see http://groups.google.cz/group/sage-support/browse_thread/thread/805a90ee7b3dac01/da40155dd49e90cc?lnk=gst&q=listen+8000#da40155dd49e90cc Robert Marik > 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 -~----------~----~----~----~------~----~------~--~---
