Change MYAPP to / on the following line in the isapi_MYAPP.py file to host from root rather the virtual app MYAPP on default web site: vd = VirtualDirParameters(Name="MYAPP", to vd = VirtualDirParameters(Name="/",
import os, sys
path = os.path.dirname(os.path.abspath(__file__))
os.chdir(path)
sys.path = [path]+[p for p in sys.path if not p==path]
import gluon.main
application=gluon.main.wsgibase
import isapi_wsgi
# The entry points for the ISAPI extension.
def __ExtensionFactory__():
return isapi_wsgi.ISAPISimpleHandler(application)
if __name__=='__main__':
# If run from the command-line, install ourselves.
# python isapi_web2py.py install --server=Sitename
from isapi.install import *
params = ISAPIParameters()
# Setup the virtual directories - this is a list of directories our
# extension uses - in this case only 1.
# Each extension has a "script map" - this is the mapping of ISAPI
# extensions.
sm = [
ScriptMapParams(Extension="*", Flags=0)
]
vd = VirtualDirParameters(Name="MYAPP",
Description = "Web2Py in Python.",
ScriptMaps = sm,
ScriptMapUpdate = "replace"
)
params.VirtualDirs = [vd]
HandleCommandLine(params)
routers = dict(
BASE=dict(
path_prefix='MYAPP',
),
)
If you are interested to RDP in to the server just let me know. My summary so far is that IIS appears to be doing something dynamic which causes the request thread to crash when .py files are created under its doc root. I can't get any logging of what goes wrong. No python exception is raised.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/hgfWnNeRIDY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.