Here's what I tried:

 * I setup SSH tunnel from my Vista desktop's localhost:8080 to
ubuntu.private.lan:80.
 * I modified Apache2's <virtualhost *:80> to enable access to /admin

The new non-HTTPS, ssh-tunneled, remote URL to ubuntu.private.lan is:

    http://localhost:8080/admin/default/edit/myblog/views/default/index.html

I got same problem again on Firefox and Chrome.  Files get saved
successfully, but "Last Saved On" field shows "communication error" in
red background color every time I click Save button.

Next, I'll try using Rocket on Ubuntu, just for debugging this
problem.  Rocket won't be approved for production servers here (this
summer), so I hope we can find a solution using Apache 2.2.14.

On Jun 7, 11:58 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Does it work without ssl? Which browser are you using? Have you tried
> other browsers?
>
> Massimo
>
> On Jun 7, 11:47 am, Salvor Hardin <salvor.pub...@gmail.com> wrote:
>
>
>
> > I'm new to web2py and python (currently evaluating python frameworks
> > to replace Ruby on Rails on production servers by July 4th weekend.)
>
> > PROBLEM:
>
> >  * Saving a file using the admin interface displays a red
> > "communication error" in the "Last Saved On" field.  However, when I
> > click Reload in the browser, a new date and time appears correctly so
> > the file is successfully saved.
>
> > I'm using HTTPS (web2py is not running on 127.0.0.1.)
>
> > SYSTEM:
> >  * Software: web2py 1.79.1, Python 2.6.5, Apache 2.2.14, mod_wsgi 2.8,
> > OpenSSL 0.98k, sqlite 3.6.22
> >  * Browsers:  Latest stable versions of Chrome and Firefox on Vista 32-
> > bit
> >  * OS: Ubuntu Server 10.04 LTS guest running in Virtual PC 2007 SP1 on
> > Vista 32-bit host
> >           (because Virtual PC 2007 only uses ~16 (sixteen) MB RAM for
> > actively used Ubuntu Server 10.04 guest setup with 512 MB RAM,
> >            and because my work desktop is Vista, and I need to develop
> > web apps on identical OS & packages as the production server due to
> > policy)
>
> > CONFIGURATION:
>
> > I'm using HTTPS, so here's the SSL portion of the Apache2 config
> > (ubuntu.private.lan is the dev machine mapped to a LAN address):
>
> > <VirtualHost *:80>
> >   ServerName ubuntu.private.lan
> >   WSGIDaemonProcess web2py user=www-data group=www-data display-
> > name=web2py
> >    ...
> > </VirtualHost>
>
> > <IfModule mod_ssl.c>
> > <VirtualHost *:443>
> >   ServerName ubuntu.private.lan
>
> >   SSLEngine on
> >   SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
> >   SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
> >   <FilesMatch "\.(cgi|shtml|phtml|php)$">
> >       SSLOptions +StdEnvVars
> >   </FilesMatch>
> >   <Directory /usr/lib/cgi-bin>
> >       SSLOptions +StdEnvVars
> >   </Directory>
> >   BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown
> > downgrade-1.0 force-response-1.0
> >   # MSIE 7 and newer should be able to use keepalive
> >   BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
>
> >   # WSGIDaemonProcess defined is under <VirtualHost *:80> as:
> > WSGIDaemonProcess web2py user=www-data group=www-data display-
> > name=web2py
> >   WSGIProcessGroup web2py
> >   WSGIScriptAlias / /srv/web2py/wsgihandler.py
>
> >   <Directory /srv/web2py>
> >     AllowOverride None
> >     Order Allow,Deny
> >     Deny from all
> >     <Files wsgihandler.py>
> >       Allow from all
> >     </Files>
> >   </Directory>
>
> >   AliasMatch ^/([^/]+)/static/(.*) \
> >         /srv/web2py/applications/$1/static/$2
>
> >   <Directory /srv/web2py/applications/*/static/>
> >     Order Allow,Deny
> >     Allow from all
> >   </Directory>
>
> >   CustomLog /var/log/apache2/access.log common
> >   ErrorLog /var/log/apache2/error.log
>
> > </VirtualHost>
> > </IfModule>

Reply via email to