On Thu, Sep 24, 2009 at 1:41 AM, Robert Bradshaw
<rober...@math.washington.edu> wrote:
>
> On Sep 24, 2009, at 1:17 AM, ma...@mendelu.cz wrote:
>
>> On 24 zář, 09:17, Robert Bradshaw <rober...@math.washington.edu>
>> wrote:
>>> This depends on what kind of PC you're running the server on. The way
>>> we do sagenb.org is have apache running on the host machine which
>>> forwards all incoming connections to the virtual machine with re-
>>> writing rules. This is pretty easy to set up on Linux or OS X, but
>>> I'm not sure how to do it on a Windows box (but I'm sure it could be
>>> done).
>>
>> Thanks for the answers.
>>
>> I have Debian Linux and root priviledges, so I can also customize
>> apache.
>>
>> I looked to http://www.vmware.com/support/ws55/doc/
>> ws_net_nat_advanced.html
>> I have no file /etc/vmware/vmnet8/nat/nat.conf  (directory is empty)
>> Linux sample config file from vmware is
>> http://www.vmware.com/support/ws55/doc/
>> ws_net_nat_sample_vmnetnatconf.html
>> Is this the file which should be created in /etc/vmware/vmnet8/nat/
>> and modified?
>> Which parts should be used?
>
> I assume from what you've said that you're able to connect to the
> notebook server from your machine (localhost), in which case you
> don't need to configure the nat. What you can do is configure apache
> with
>
> <VirtualHost *>
>   ...
>   RewriteEngine On
>   ProxyPass    / http://host:8000/
>   ProxyPassReverse / http://host:8000/
>   ...
> </VirtualHost>

For the record, here is the actual entry I use in /etc/httpd.conf:

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



>
> where host is whatever you use to (locally) connect. Doing this will
> forward all connections to VirtualHost (however it's specified,
> either by port or by dns name or whatever, maybe everything if you're
> not running another webserver on your PC) to the virtual machine.
>
>>
>> Thank you very much.
>>
>> Robert
>>
>> btw: I have seen that sagenb.org has 8GB RAM. Right?
>
> The actual machine it's on has 128GB RAM, but it's in a VMWare image
> that sees less than that.
>
>> I wonder, how
>> large is the swap. I used for small group (15 students) sage on PC
>> with 2GB RAM and it was necessary to have really big swap, since Sage
>> was consuming memory fast (has been discussed in January - here on
>> sage-edu).
>> >
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to