[web2py] Re: Close...but still not deployed
Thanks to Omi Chiba for pointing out the missing e in welcome. Now the welcome app is deployed!
[web2py] Re: Close...but still not deployed
I found this blog http://ochiba77.blogspot.com/2011/10/how-to-setup-web2py-apache-wsgi.html that goes into more detail. I had to set up a virtual host for port 80. Now, on the server's machine I can get the welcom app to come up with http://localhost/welcome/default/index but if I try http://dfwmodeling01d.tqs.com/welcom/default/index I get *invalid request* Can someone tell me if I'm on the right track yet?
[web2py] Re: Close...but still not deployed
Hello pbreit, Yes I am attempting to deploy on my windows machine. I did use the rocket server to work through the web2py.com/books chapters and examples. Now I am on http://web2py.com/books/default/chapter/29/13 trying to deploy these sample apps on Apache. Chapter 29 only shows a partial http.conf where the virtual host is defined. I've been trying to hack the http.conf file trying different settings. So far. still no luck.
[web2py] Re: Close...but still not deployed
Are you accessing the site via "https"? I would suggest trying to get it to work without ssl just using "http". If it can't find the directory, it sounds more like a basic problem with the http.conf setup. Have you reviewed the deployment recipe for Apache? http://web2py.com/books/default/chapter/29/13 Are you deploying on your Windows machine? If you are just developing, I suggest just using the Rocket server that comes in the Web2py Windows package or maybe Wamp. I have found web serving on Windows to be quite unpleasant.
[web2py] Re: Close...but still not deployed
I can see in my error log (C:\Program Files (x86)\Apache Software Foundation\Apache2.2\logs) that the server is looking in it's htdocs folder. Here is my error log and although I have numerous warnings and notices, it's the errors at the bottom that told me the server is looking in the htdocs folder. [Wed Feb 15 10:49:58 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Wed Feb 15 10:49:58 2012] [warn] RSA server certificate CommonName (CN) `dfwmodeling01d.tqs.com' does NOT match server name!? [Wed Feb 15 10:49:58 2012] [warn] RSA server certificate CommonName (CN) `dfwmodeling01d.tqs.com' does NOT match server name!? [Wed Feb 15 10:49:58 2012] [warn] mod_wsgi: Compiled for Python/2.7. [Wed Feb 15 10:49:58 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. [Wed Feb 15 10:49:58 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/0.9.8r mod_wsgi/3.3 Python/2.7.2 configured -- resuming normal operations [Wed Feb 15 10:49:58 2012] [notice] Server built: Sep 9 2011 10:26:10 [Wed Feb 15 10:49:58 2012] [notice] Parent: Created child process 2528 [Wed Feb 15 10:49:58 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Wed Feb 15 10:49:58 2012] [warn] RSA server certificate CommonName (CN) `dfwmodeling01d.tqs.com' does NOT match server name!? [Wed Feb 15 10:49:59 2012] [warn] RSA server certificate CommonName (CN) `dfwmodeling01d.tqs.com' does NOT match server name!? [Wed Feb 15 10:49:59 2012] [warn] mod_wsgi: Compiled for Python/2.7. [Wed Feb 15 10:49:59 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. [Wed Feb 15 10:49:59 2012] [notice] Child 2528: Child process is running [Wed Feb 15 10:49:59 2012] [notice] Child 2528: Acquired the start mutex. [Wed Feb 15 10:49:59 2012] [notice] Child 2528: Starting 64 worker threads. [Wed Feb 15 10:49:59 2012] [notice] Child 2528: Starting thread to listen on port 440. [Wed Feb 15 10:49:59 2012] [notice] Child 2528: Starting thread to listen on port 80. [Wed Feb 15 10:50:27 2012] [error] [client 10.100.48.31] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/default [Wed Feb 15 10:58:39 2012] [error] [client 10.100.48.31] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/images [Wed Feb 15 10:58:45 2012] [error] [client 10.100.48.31] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/myapp [Wed Feb 15 10:58:55 2012] [error] [client 10.100.48.31] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/myapp [Wed Feb 15 10:59:12 2012] [error] [client 10.100.48.31] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/default