Test mod_wsgi sub interpreters and embedded mode. Use unique collection name for each mod_wsgi interpreter. Test encoding/decoding all bson types.
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
# Copyright 2012-present MongoDB, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Minimal test of PyMongo in a WSGI application, see bug PYTHON-353
|
|
|
|
LoadModule wsgi_module ${MOD_WSGI_SO}
|
|
|
|
# Avoid permissions issues
|
|
WSGISocketPrefix /tmp/
|
|
|
|
<VirtualHost *>
|
|
ServerName localhost
|
|
WSGIDaemonProcess mod_wsgi_test processes=1 threads=15 display-name=mod_wsgi_test
|
|
WSGIProcessGroup mod_wsgi_test
|
|
# Mount the script twice so that multiple interpreters are used.
|
|
# For the convenience of unittests, rather than hard-code the location of
|
|
# mod_wsgi_test.py, include it in the URL, so
|
|
# http://localhost/interpreter1/location-of-pymongo-checkout will work:
|
|
WSGIScriptAliasMatch ^/interpreter1/(.+) $1/test/mod_wsgi_test/mod_wsgi_test.py
|
|
WSGIScriptAliasMatch ^/interpreter2/(.+) $1/test/mod_wsgi_test/mod_wsgi_test.py
|
|
</VirtualHost>
|