mongo-python-driver/test/mod_wsgi_test/mod_wsgi_test_embedded.conf
Shane Harvey eed4a55184
PYTHON-694 Test mod_wsgi sub interpreters (#1327)
Test mod_wsgi sub interpreters and embedded mode.
Use unique collection name for each mod_wsgi interpreter.
Test encoding/decoding all bson types.
2023-07-26 18:03:29 -07:00

31 lines
1.2 KiB
Plaintext

# Copyright 2023-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 an *Embedded mode* WSGI application.
LoadModule wsgi_module ${MOD_WSGI_SO}
# Avoid permissions issues
WSGISocketPrefix /tmp/
<VirtualHost *>
ServerName localhost
# 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>