Again I need some help. Sorry for bothering you again. I have been 
searching all morning but many posts are perhaps outdated and a search for 
options.py causes Google search box to crap out. 

My server is running (see below), the web2py service is running (see below) 
but the web site doesn't come up.

Still trying to deploy the sample apps from the book with an Apache Server 
on windows xp. Changed the SSL port to 440 instead of 443 but that was the 
only change that I know of.

SSL key and cert is created and installed.
The http.conf is edited and passes configuration test. 
The Server starts and a visit to myserver.tqs.com returns

*It works!*
But a visit to myserver.tqs.com/default/images returns

Not Found 

The requested URL /default/images was not found on this server.


web2py is installed as a service:

C:\web2py>python web2py.py -W install
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.4 (2011-12-14 14:46:14) stable
Database drivers available: SQLite3, pymysql
Starting hardcron...
Installing service web2py
Service installed

C:\web2py>python web2py.py -W start
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.4 (2011-12-14 14:46:14) stable
Database drivers available: SQLite3, pymysql
Starting hardcron...
Starting service web2py

C:\web2py>

The options.py file looks like this but I'm not convinced the paths to the 
SSL crt or key is correct. Yes, I tried both the long path ('C:/Program 
Files (x86)/Apache Software Foundation/Apache2.2/conf/server.crt'  # ## 
path to certificate file) and the short path, stopping & starting the 
service and server each time.

#!/usr/bin/python
# -*- coding: utf-8 -*-

# when web2py is run as a windows service (web2py.exe -W)
# it does not load the command line options but it
# expects to find conifguration settings in a file called
#
#   web2py/options.py
#
# this file is an example for options.py

import socket
import os

ip = '0.0.0.0'
port = 80
interfaces=[('0.0.0.0',80),('0.0.0.0',440,'server.key','server.crt')]
password = '<recycle>'  # ## <recycle> means use the previous password
pid_filename = 'httpserver.pid'
log_filename = 'httpserver.log'
profiler_filename = None
ssl_certificate = 'server.crt'  # ## path to certificate file
ssl_private_key = 'server.key'  # ## path to private key file
#numthreads = 50 # ## deprecated; remove
minthreads = None
maxthreads = None
server_name = socket.gethostname()
request_queue_size = 5
timeout = 30
shutdown_timeout = 5
folder = os.getcwd()
extcron = None
nocron = None

I feel I'm close and I hate to keep bothering you guys. Thanks for your 
help. After this is running, my next step will be to use mysql instead of 
sqllite. Those questions will be in a seperate post of course.

Regards,
Bill

Reply via email to