Hi Graham,
Really thanks for your quick response.
Yes, you are right and I missed "[", it is a paste mistake
Yes, I totally agree with you, I want to avoid use this complex thing. It is ok for me to combine the two applications to one, then handle the pattern of URL inside the application. But I still have the problem for filtering the files I need to deal with. For example, there are other files e.g. html page, php script etc. under /testsuite/tests/sub_folder/sub_folder which I don't want to touch, I am only interested in the requests matching pattern either "mth" or "^/testsuite/tests/[a-z0-9][a-z0-9\-]*(\.[a-z0-9][a-z0-9\-]*)+_[A-Z0-9][A-Z0-9_\-]*)/(.*\.fmp4)/(.*)$", the first one is easy, the second is kind of mixed with the files I don't want to handle. Because for so many reasons, I couldn't put the files into separate folders.
Before I thought I can use WSGIScriptAliasMatch to do the filter, but it seems I cannot do it on windows. I tried to upgrade pywin32 package, it does not help:(.
Given "Alias" or "AliasMatch" has precedence over WSGIScriptAlias, Now I am thinking possibly I use the them to filter out the files I am not interested in, then the rest of the files will go to the django application, hopping I can find easy pattern to do this filter ( I hate the perl regular expression :().
Really thanks for your help!!
Best regards,
Monica.