this does not show any error messages in apache log ?
[Sun Aug 16 14:57:12 2009] [info] [client 192.168.2.17] mod_wsgi
(pid=5791, process='www', application=''): Loading WSGI script '/usr/
httpd/www/appwsgi/wsgi/upload2.wsgi'.
import os,sys
def application(environ, response):
#query=environ.get['QUERY_STRING']
query=os.path.join(os.path.dirname(__file__),'teeeeeeeeeemp')
print('query=',query,file=sys.stderr)
range=environ.get('HTTP_RANGE','bytes=0-').replace
('bytes=','').split(',')
offset=[]
for r in range: offset.append(r.split('-'))
with open(query,'wb') as f
f.seek(offset[0][0])
while True:
chunk=environ['wsgi.input'].read(8192).decode('latin1')
if not chunk: break
f.write(chunk)
l=os.fstat(f.fileno()).st_size
response('200 OK', [('Content-Type', 'text/plain'), ('Content-
Length', str(len(l)))])
return [l]
User www
Group www
Listen 80
Listen 443
ServerRoot "/usr/httpd"
ServerAdmin [email protected]
ServerName 192.168.2.17
DocumentRoot "www"
LogLevel info
ErrorLog "logs/httpd.log"
DefaultType text/plain
AddDefaultCharset utf-8
<Directory />
Options ExecCGI Indexes FollowSymLinks
Allow from all
DirectoryIndex index.htm
</Directory>
LoadModule ssl_module modules/mod_ssl.so
SSLSessionCache dbm:logs/ca
SSLCertificateFile conf/ca.crt
SSLCertificateKeyFile conf/ca.key
SSLEngine off
LoadModule wsgi_module modules/mod_wsgi.so
WSGIDaemonProcess www python-path=/usr/httpd/www user=www group=www
processes=1 threads=1 display-name="wsgi: www"
WSGIProcessGroup www
WSGIApplicationGroup %{GLOBAL}
WSGIChunkedRequest On
WSGILazyInitialization On
WSGIRestrictEmbedded On
LoadModule mime_module modules/mod_mime.so
AddHandler wsgi-script .wsgi
AddType text/css .css
AddType text/javascript .js
AddType application/xhtml+xml .htm
AddType application/x-shockwave-flash .swf
AddType video/x-flv .flv
AddType audio/mpeg .mp3
AddType image/png .png
AddType image/x-icon .ico
LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/
javascript text/css
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---