To solve my problem the I could not get NON https to work in web2py
with Apache 2.2 On Windows VISTA Enterprise:

In httpd.conf, I had to add another <Virtual Host> entry, copied
mostly from the given :443 entry, but for port 8080:
NameVirtualHost *:8080
<VirtualHost *:8080>
:
:

I had to use port 8080 because for some reason the Apache Service
fails to start if I try to use port 80,
possibly a conflict with the installation of IIS 7, even though I have
set the IIS 7 service to be Disabled.

There is also a typo in the web2py book (unwanted quotes around "%r")
It should be:
  LogFormat "%h %l %u %t %r %>s %b" common

Another Gotcha:
web2py book deployment chapter has broken a link to wsgi mod
   I downloaded mod_wsgi-win32-ap22py27-3.3.so from
      http://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2
      NOTE This is only for 32 bit python and 32 bit Apache.  For 64
bit you must build or pay
      Instruction for installing mod_wsgi are here
             http://code.google.com/p/modwsgi/wiki/InstallationOnWindows

Also I renamed it to mod_wsgi.so when copying into to Apache2.2/
modules

Finally, on Windows Vista, for creating the Self Signed Certificate, I
had to use this command:
cd C:\Program Files\Apache Software Foundation\Apache2.2\conf
openssl req -x509 -nodes -days 365 -newkey sa:2048 -keyout server.key -
out server.crt -config  "C:\Program Files\Apache Software oundation
\Apache2.2\conf\openssl.cnf"

It seems I can use web2py with Rocket to set the Admin Password and
after that run in Apache and use that same password.


https://138.85.50.99/admin (enter it using password that was first
created by running web2py Rocket version)
http://138.85.50.99:8080/welcome

On Oct 1, 6:25 pm, dlypka <[email protected]> wrote:
> Update:https://138.85.50.99/welcome/default/index works!http://138.85.50.99:8080 works!
>   (Apache index.html)http://138.85.50.99:8080/welcome/default/indexdoes not 
> work.  What is
> the problem?
>
> On Oct 1, 5:27 pm, dlypka <[email protected]> wrote:
>
>
>
> > I followed the web2py 3.1 Ed. book chapter for installation on Windows
> > (VISTA Enterprise in my case).
> > web2py and Apache 2.2 now work independently.
> > web2py still just working in its own Rocket server.
> > I made all the changes to C:\Program Files\Apache Software Foundation
> > \Apache2.2\conf\httpd.conf
> > and it works.  I create the Self-Signed Certificate and so on as well.
> > Apache seems to not work on Port 80, maybe due to IIS 7 presence
> > though I stopped the IIS7 Service.
>
> > So in httpd.conf  I decided to specify
>
> > Listen 138.85.50.99:8080
> > Listen 138.85.50.99:443
> > ServerName 138.85.50.99:8080
>
> >http://127.0.0.1:8080/welcome/default/index (web2py Rocket)
>
> >http://138.85.50.99:8080/index.html works (Apache)
>
> > Q: How to get the web2py Welcome app to run under Apache?????
> >     What URL should be used to run web2py Welcome under Apache???
>
> > Is there a .py I have change to point to Apache instead of Rocket?
>
> > How to I keep web2py running? Does it have to be a Windows Service? or
> > will Apache somehow
> > invoke python web2py.py as needed?
>
> > ONE Gotcha under VISTA and Windows 7: Not good to install in C:
> > \Program Files because security restrictions
> > prevent the installer from saving changes to any config files it tries
> > to update as part of installation.
> > Needs to go into something like C:\Apache22 for example.
> > Else open up Security Settings for C:\Program Files.- Hide quoted text -
>
> - Show quoted text -

Reply via email to