On Fri, Mar 27, 2009 at 12:35 PM, Robert Bradshaw
<[email protected]> wrote:
>
> On Mar 27, 2009, at 12:00 PM, nerak99 wrote:
>
>> I have compiled and installed sage on a server and it is working
>> fine.
>> To access the server from home, I have to go through a firewall and so
>> I need to use port 80 to access the server and so far as I can tell,
>> use mod_proxy to redirect requests to sage to port 8000.
>>
>> Unfortunately, in sage the html links are all absolute rather tha
>> relative  so I can redirect http://myserver/sage to port 8000 but the
>> the links go to http://myserver/login (say) rather than http://
>> myserver/sage/login.
>>
>> Any ideas, is a rewrite fo the html a huge job from me to undertake?
>
> I think you can use apache to be a proxy and reverse proxy, using re-
> write rules to map the urls both directions (as well as ports). This
> is probably the best bet (correct me if I'm wrong, but doesn't
> sagenb.org work this way?).

This is how sagenb.org works.  This is in httpd.conf.  It's maybe even
more complicated because the computer serving the page isn't even the
same computer where the notebook server is running.

<VirtualHost *>
  RewriteEngine On
  ServerName sagenb.org
  ProxyPass    / http://sagenb.org:8000/
  ProxyPassReverse / http://sagenb.org:8000/
  DocumentRoot /
        <Location />
           DefaultType text/html
        </Location>
</VirtualHost>

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to