This issue may me be something I'm doing incorrectly when setting up Apache 2.4 vs. 2.2 (I hope), but if not then here is what I'm seeing; mod_wsgi 3.4 is silently failing with Apache 2.4.
- I'm using Windows 7 SP1 32-bit - I'm using ApacheHaus 32-bit builds for 2.2.23 and 2.4.3: http://www.apachehaus.com/cgi-bin/download.plx - I'm used the tarball for mod_wsgi 3.4: http://code.google.com/p/modwsgi/wiki/DownloadTheSoftware - I'm using Visual Studio 2008 (Same compiler as ApacheHaus) - I built mod_wsgi from the same source for both Apache 2.2 and Apache 2.4, cleaning in between - Apache is at the root of C:\ in C:\Apache22 and C:\Apache24 ------------------------------- Apache 2.4 (Exactly the same as the provided win32-ap22py27.mk, except for the Apache path) ------------------------------- CPPFLAGS = \ /DWIN32 \ /DNDEBUG \ /I"c:\Program Files\Microsoft Visual Studio 9.0\VC\include" \ /I"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include" \ /I"c:\Apache24\\include" \ /I"c:\Python27\include" CFLAGS = \ /MD \ /GF \ /Gy \ /O2 \ /Wall \ /Zc:wchar_t \ /Zc:forScope LDFLAGS = \ /link \ "/LIBPATH:c:\Program Files\Microsoft Visual Studio 9.0\VC\lib" \ "/LIBPATH:c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" \ "/LIBPATH:c:\Apache24\lib" \ /LIBPATH:c:\Python27\libs \ /OPT:REF \ /OPT:ICF=2 \ /RELEASE \ /SUBSYSTEM:WINDOWS LDLIBS = \ python27.lib \ libhttpd.lib \ libapr-1.lib \ libaprutil-1.lib mod_wsgi.so : mod_wsgi.c cl $(CPPFLAGS) $(CFLAGS) $? /LD $(LDFLAGS) $(LDLIBS) /OUT:$@ mt -manifest [email protected] -outputresource:$@;2 clean : del *.obj *.so *.so.manifest *.lib *.exp ---- Final few lines of build --- /out:mod_wsgi.dll /dll /implib:mod_wsgi.lib "/LIBPATH:c:\Program Files\Microsoft Visual Studio 9.0\VC\lib" "/LIBPATH:c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" /LIBPATH:c:\Apache24\lib /LIBPATH:c:\Python27\libs /OPT:REF /OPT:ICF=2 /RELEASE /SUBSYSTEM:WINDOWS python27.lib libhttpd.lib libapr-1.lib libaprutil-1.lib /OUT:mod_wsgi.so mod_wsgi.obj Creating library mod_wsgi.lib and object mod_wsgi.exp mt -manifest mod_wsgi.so.manifest -outputresource:mod_wsgi.so;2 Microsoft (R) Manifest Tool version 5.2.3790.2075 Copyright (c) Microsoft Corporation 2005. All rights reserved. ------------------------------- Apache 2.2 (Exactly the same as the provided win32-ap22py27.mk, except for the Apache path) ------------------------------- CPPFLAGS = \ /DWIN32 \ /DNDEBUG \ /I"c:\Program Files\Microsoft Visual Studio 9.0\VC\include" \ /I"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include" \ /I"c:\Apache22\include" \ /I"c:\Python27\include" CFLAGS = \ /MD \ /GF \ /Gy \ /O2 \ /Wall \ /Zc:wchar_t \ /Zc:forScope LDFLAGS = \ /link \ "/LIBPATH:c:\Program Files\Microsoft Visual Studio 9.0\VC\lib" \ "/LIBPATH:c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" \ "/LIBPATH:c:\Apache22\lib" \ /LIBPATH:c:\Python27\libs \ /OPT:REF \ /OPT:ICF=2 \ /RELEASE \ /SUBSYSTEM:WINDOWS LDLIBS = \ python27.lib \ libhttpd.lib \ libapr-1.lib \ libaprutil-1.lib mod_wsgi.so : mod_wsgi.c cl $(CPPFLAGS) $(CFLAGS) $? /LD $(LDFLAGS) $(LDLIBS) /OUT:$@ mt -manifest [email protected] -outputresource:$@;2 clean : del *.obj *.so *.so.manifest *.lib *.exp ---- Final few lines of build --- /out:mod_wsgi.dll /dll /implib:mod_wsgi.lib "/LIBPATH:c:\Program Files\Microsoft Visual Studio 9.0\VC\lib" "/LIBPATH:c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" /LIBPATH:c:\Apache22\lib /LIBPATH:c:\Python27\libs /OPT:REF /OPT:ICF=2 /RELEASE /SUBSYSTEM:WINDOWS python27.lib libhttpd.lib libapr-1.lib libaprutil-1.lib /OUT:mod_wsgi.so mod_wsgi.obj Creating library mod_wsgi.lib and object mod_wsgi.exp mt -manifest mod_wsgi.so.manifest -outputresource:mod_wsgi.so;2 Microsoft (R) Manifest Tool version 5.2.3790.2075 Copyright (c) Microsoft Corporation 2005. All rights reserved. I'm attempting to run a simple Flask application with this configuration (the config shown is included as a separate file, httpd-wsgi.conf, in a stock httpd.conf from ApacheHaus): ------------------------------- Apache 2.4 ------------------------------- LoadModule wsgi_module modules/mod_wsgi.so <VirtualHost *:80> WSGIScriptAlias /flask "/Apache24/wsgi/flask/wsgihandler.wsgi" <Directory "/Apache24/wsgi/flask"> AllowOverride None Options None Require all granted </Directory> CustomLog "logs/access.log" common ErrorLog "logs/error.log" </VirtualHost> ------------------------------- Apache 2.2 ------------------------------- LoadModule wsgi_module modules/mod_wsgi.so <VirtualHost *:80> WSGIScriptAlias /flask "/Apache22/wsgi/flask/wsgihandler.wsgi" <Directory "/Apache22/wsgi/flask"> Order allow,deny Allow from all </Directory> CustomLog logs/access.log common ErrorLog logs/error.log </VirtualHost> When I use Apache 2.2 I get my "Hello World," but with Apache 2.4 I get a 404. I had been attempting to do this against the 3.4-BRANCH build and Apache 2.4.2 a few weeks ago, but gave up figuring that it was something to do with using potentially unfinished code. Seeing as how 3.4 seems to be getting closer to release (or is released), I thought I'd report this. On OS X mod_wsgi 3.4 and Apache 2.4.3 work perfectly with a similar setup (although it uses Daemon mode), so that seems to indicate that this is a Windows specific issue. Thanks for any help! -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/5GyGVhHSq4EJ. 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.
