Was using mod_wsgi 2.3, checked with mod_wsgi 2.5 and Python 2.6.1 - the result is the same. So yes, probably the issue is Windows specific. BTW do you test mod_wsgi on Windows?
On Jul 21, 12:01 pm, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > What version of mod_wsgi are you using? > > If you are mod_wsgi 2.3 or older, ensure you upgrade to mod_wsgi 2.5. > This will mean you will have to use Python 2.6 as no binaries for > older Python versions. > > I cannot duplicate the problem you are having on MacOS X, with it > working for me. > > WSGIScriptAlias /echo2 "/Users/grahamd/Sites/русский апач/echo.wsgi" > > SCRIPT_FILENAME: > '/Users/grahamd/Sites/\xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\ > xb9 > \xd0\xb0\xd0\xbf\xd0\xb0\xd1\x87/echo.wsgi' > > I am wandering whether you are being affected by a variation of the > configuration corruption problem for which that fopen() error was one > of the problems seen, although the path still seems correct. > > http://code.google.com/p/modwsgi/issues/detail?id=78&can=1 > > It could also be that the issue is Windows specific. > > Graham > > 2009/7/21 Mike Plavsky <supermapl...@gmail.com>: > > > > > > > Good suggestion re static files. I've done it myself. And Apache works > > with no issues. So definitely it supports not only latin-1 in conf > > files. Actually the complete story was if I stored conf file as ANSI, > > Apache didn't work. It complained: > > > C:\Documents and Settings\MPlavsky\My Documents\projects\русский апач > > \conf>..\bi > > n\httpd.exe > > httpd.exe: Syntax error on line 1 of C:/Documents and Settings/ > > MPlavsky/My Docum > > ents/projects/\xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9 > > \xd0\xb0\ > > xd0\xbf\xd0\xb0\xd1\x87/conf/httpd.conf: ServerRoot must be a valid > > directory > > > But as soon as I saved conf file as UTF8 file, Apache started working > > fine. So I was able to get this jpg for example. > > >http://spb9503:8080/static/search.jpg > > > Here is conf file w/o mod_wsgi: > > > ServerRoot "C:\Documents and Settings\MPlavsky\My Documents\projects > > \русский апач" > > ServerName 'spb9503:8080' > > ServerSignature Off > > ServerTokens Prod > > DocumentRoot 'py_sa_search' > > Listen '8080' > > > LoadModule wsgi_module modules/mod_wsgi.so > > LoadModule actions_module modules/mod_actions.so > > LoadModule alias_module modules/mod_alias.so > > LoadModule asis_module modules/mod_asis.so > > LoadModule dir_module modules/mod_dir.so > > LoadModule env_module modules/mod_env.so > > LoadModule log_config_module modules/mod_log_config.so > > LoadModule mime_module modules/mod_mime.so > > LoadModule setenvif_module modules/mod_setenvif.so > > > Alias /static/ "C:\Documents and Settings\MPlavsky\My Documents > > \projects\русский апач\py_sa_search\static\" > > > ErrorLog logs/error.log > > LogLevel debug > > DefaultType text/plain > > > As soon as I returned mod_wsgi back, it stoped working. > > > Here is conf: > > > ServerRoot "C:\Documents and Settings\MPlavsky\My Documents\projects > > \русский апач" > > ServerName 'spb9503:8080' > > ServerSignature Off > > ServerTokens Prod > > DocumentRoot 'py_sa_search' > > Listen '8080' > > > LoadModule wsgi_module modules/mod_wsgi.so > > LoadModule actions_module modules/mod_actions.so > > LoadModule alias_module modules/mod_alias.so > > LoadModule asis_module modules/mod_asis.so > > LoadModule dir_module modules/mod_dir.so > > LoadModule env_module modules/mod_env.so > > LoadModule log_config_module modules/mod_log_config.so > > LoadModule mime_module modules/mod_mime.so > > LoadModule setenvif_module modules/mod_setenvif.so > > > WSGIScriptAlias / "C:/Documents and Settings/MPlavsky/My Documents/ > > projects/русский апач/py_sa_search/sa_search.py" > > WSGIPythonPath "C:/Documents and Settings/MPlavsky/My Documents/ > > projects/русский апач/py_sa_search" > > WSGIRestrictStdout Off > > > Alias /static/ "C:\Documents and Settings\MPlavsky\My Documents > > \projects\русский апач\py_sa_search\static\" > > > ErrorLog logs/error.log > > LogLevel debug > > DefaultType text/plain > > > So IMHO Apache works great with this but mod_wsgi doesn't :( > > > On Jul 18, 6:26 am, Graham Dumpleton <graham.dumple...@gmail.com> > > wrote: > >> 2009/7/17 Mike Plavsky <supermapl...@gmail.com>: > > >> > Hi Guys, > > >> > My application is located here "C:\Documents and Settings\MPlavsky\My > >> > Documents\projects\русский апач", lats part is Russian. > > >> > Does anyone know if it has to work? I am getting this errors: > > >> > [Fri Jul 17 16:39:31 2009] [info] [client 10.30.36.245] mod_wsgi > >> > (pid=520, process='', application='spb9503:8080|'): Loading WSGI > >> > script 'C:/Documents and Settings/MPlavsky/My Documents/projects/ > >> > \xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9 > >> > \xd0\xb0\xd0\xbf\xd0\xb0\xd1\x87/py_sa_search/sa_search.py'. > >> > [Fri Jul 17 16:39:31 2009] [error] [client 10.30.36.245] (2)No such > >> > file or directory: mod_wsgi (pid=520, process='', > >> > application='spb9503:8080|'): Call to fopen() failed for 'C:/Documents > >> > and Settings/MPlavsky/My Documents/projects/ > >> > \xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9 > >> > \xd0\xb0\xd0\xbf\xd0\xb0\xd1\x87/py_sa_search/sa_search.py'. > >> > [Fri Jul 17 16:39:31 2009] [error] [client 10.30.36.245] mod_wsgi > >> > (pid=520): Exception occurred processing WSGI script 'C:/Documents and > >> > Settings/MPlavsky/My Documents/projects/ > >> > \xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9 > >> > \xd0\xb0\xd0\xbf\xd0\xb0\xd1\x87/py_sa_search/sa_search.py'. > > >> > You see, Russian characters are UTF8 encoded. Is that why mod_wsgi > >> > can't find my script? > > >> Can you post the actual part of the Apache configuration file where > >> you set up the WSGIScriptAlias. > > >> Technically it may only be possible to use latin-1 in Apache > >> configuration files so it may be an Apache issue, but overall it is a > >> very grey area. > > >> Send me the configuration and I will send you details of a test to run > >> which uses Alias and static files, to see if Apache works for static > >> files with non latin-1 characters in path, ie., not involving > >> mod_wsgi. > > >> Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to modwsgi@googlegroups.com To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---