On Oct 23, 8:45 pm, Johann Spies <johann.sp...@gmail.com> wrote:
> I see there are many emails about problems with shared hosting.
>
> I want to deploy a web2py site (my first one) on a shared host (Debian
> Etch with python2.4 as default python).
>
> Python 2.5 is also available and I have succeeded in installing a 2.5
> version of mod_wsgi for apache2 on the system.
>
> I want the site to use https.
>
> I have tried the following configuration:
>
> <VirtualHost *:443>
> WSGIScriptAlias /linuxspan /home/linuxspan/public_html/web2py/wsgihandler.py
> WSGIDaemonProcess web2py user=linuxspan group=linuxspan
> home=/home/linuxspan/public_html/web2py processes=1
> maximum-requests=1000
>         ServerAdmin jsp...@sun.ac.za
>         SSLEngine On
>         SSLCertificateFile /etc/ssl/certs/www2ipsca.crt
>         SSLCertificateKeyFile /etc/ssl/private/www2ipsca.key
>         DocumentRoot /home//linuxspan/public_html/pikkewyne/applications
> </VirtualHost>
>
> But <VirtualHost *:443> - setup cannot be use for ssl on a shared
> host. At least that is what the main administrator for the server told
> me.

One can only have a single SSL certificate for an IP so you can't have
multiple virtual hosts for HTTPS off same IP.

> So what are my alternatives?
>
> * I could not find any howto on how to use fastcgi web2py and apache2
> in a shared environment.

If there is a HTTPS restriction stopping you from using mod_wsgi in
that way, using fastcgi will not make any difference.

> * mod_python will not work because it will start the python2.4 interpreter.

It won't if you compile mod_python from source code against Python 2.5
like you did with mod_wsgi. Like with fastcgi though, it will not
solve the problem anyway.

> * Is there a way to make wsgi work in a setup like this?

WSGI is a specification and not an implementation. So WSGI itself will
not help.

> * Is it possible to use mod_proxy in this setup with https?

Again, using mod_proxy will not solve the HTTPS problem if the web
server setup imposes such a restriction.

> My knowledge of .htaccess is limited.

Do you have access to main Apache configuration files or not? That you
are mention .htaccess files actually suggests you don't which of
course means you cant use VirtualHost type configuration above.

> I would appreciate help in this regard.

For starters there are various things you are doing in your
configuration which are not right or ill advised.

Have you actually read the mod_wsgi setup instructions in the 2nd
edition of the web2py book?

Read material referenced in:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithWeb2Py

Make it clear whether you have control of the Apache web server or
whether you are trying to do this in .htaccess file.

What web hosting outfit is this?

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to