waitress Documentation v1.3.1configure the Waitress server’s trusted_proxy to contain the IP address of the proxy. #### 1.3.3 Using url_prefix to influence SCRIPT_NAME and PATH_INFO You can have the Waitress server use a particular url prefix SCRIPT_NAME into account.: from waitress import serve serve(wskiapp, listen='0.0.0.0:8080', url_prefix='//foo') Setting this to any value except the empty string will cause the WSGI SCRIPT_NAME 0:8080', unix_socket=None, unix_socket_perms='600', threads=4, url_scheme='http', url_prefix='', ident='waitress', backlog=1204, recv_bytes=8192, send_bytes=1, outbuf_overflow=1048560 码力 | 95 页 | 249.32 KB | 1 年前3
The Weblate Manual 4.3.2all granted Additionally, you will have to adjust weblate/settings.py: URL_PREFIX = '/weblate' ## Background tasks using Celery ### New in version 3.2 Weblate uses Celery be achieved by setting WSGIScriptAlias. ## Hint The prefix should start with a /. Example: URL_PREFIX = '/translations' ## Note This setting does not work with Django’s built-in server, you timezone-aware datetimes. USE_TZ = True # URL prefix to use, please see documentation for more details URL_PREFIX = "" # Absolute filesystem path to the directory that will hold user-uploaded files. MEDIA_ROOT0 码力 | 673 页 | 9.34 MB | 2 年前3
waitress Documentation v1.1.0IP address of the proxy in order for this header to override the default URL scheme. ## Using url_prefix to influence SCRIPT_NAME and PATH_INFO You can have the Waitress server use a particular url prefix SCRIPT_NAME into account.: from waitress import serve serve(wsgiapp, listen='0.0.0.0:8080', url_prefix='/foo') Setting this to any value except the empty string will cause the WSGI SCRIPT_NAME SCRIPT_NAME using PrefixMiddleware too (its original purpose, really) instead of using Waitress' url_prefix adjustment. See the PasteDeploy docs for more information. ## Extended Documentation • Design0 码力 | 36 页 | 41.63 KB | 1 年前3
The Weblate Manual 2.37/site-packages/django/contrib/admin/static/admin/ Additionally you will have to adjust weblate/settings.py: URL_PREFIX = '/weblate' Note: This is supported since Weblate 1.3. #### 4.2.8 SUSE Studio appliance timezone-aware datetimes. USE_TZ = False # URL prefix to use, please see documentation for more details URL_PREFIX = '' # Absolute filesystem path to the directory that will hold user-uploaded files. # lawrence.com/media/", "http://example.com/media/" MEDIA_URL = '%s/media/' % URL_PREFIX # Absolute path to the directory static files should be collected to. # Don't put anything0 码力 | 129 页 | 739.30 KB | 2 年前3
waitress Documentation v1.4.3configure the Waitress server’s trusted_proxy to contain the IP address of the proxy. #### 1.3.3 Using url_prefix to influence SCRIPT_NAME and PATH_INFO You can have the Waitress server use a particular url prefix SCRIPT_NAME into account.: from waitress import serve serve(wskiapp, listen='0.0.0.0:8080', url_prefix='//foo') Setting this to any value except the empty string will cause the WSGI SCRIPT_NAME 0:8080', unix_socket=None, unix_socket_perms='600', threads=4, url_scheme='http', url_prefix='', ident='waitress', backlog=1204, recv_bytes=8192, send_bytes=1, outbuf_overflow=1048560 码力 | 103 页 | 259.25 KB | 1 年前3
waitress Documentation v2.1.1configure the Waitress server’s trusted_proxy to contain the IP address of the proxy. #### 1.3.3 Using url_prefix to influence SCRIPT_NAME and PATH_INFO You can have the Waitress server use a particular url prefix SCRIPT_NAME into account.: from waitress import serve serve(wskiapp, listen='0.0.0.0:8080', url_prefix='//foo') Setting this to any value except the empty string will cause the WSGI SCRIPT_NAME 0:8080', unix_socket=None, unix_socket_perms='600', threads=4, url_scheme='http', url_prefix='', ident='waitress', backlog=1024, recv_bytes=8192, send_bytes=1, outbuf_overflow=1048560 码力 | 113 页 | 270.88 KB | 1 年前3
waitress Documentation v2.1.2configure the Waitress server’s trusted_proxy to contain the IP address of the proxy. #### 1.3.3 Using url_prefix to influence SCRIPT_NAME and PATH_INFO You can have the Waitress server use a particular url prefix SCRIPT_NAME into account.: from waitress import serve serve(wskiapp, listen='0.0.0.0:8080', url_prefix='//foo') Setting this to any value except the empty string will cause the WSGI SCRIPT_NAME 0:8080', unix_socket=None, unix_socket_perms='600', threads=4, url_scheme='http', url_prefix='', ident='waitress', backlog=1024, recv_bytes=8192, send_bytes=1, outbuf_overflow=1048560 码力 | 115 页 | 272.79 KB | 1 年前3
waitress Documentation v3.0.1
cause an OverflowError on Python 2. See https://github.com/Pylons/waitress/issues/47. - When the url_prefix adjustment starts with more than one slash, all slashes except one will be stripped from its beginning portion cannot be empty. - If the url_prefix adjustment matches the request path exactly, we now compute SCRIPT_NAME and PATH_INFO properly. Previously, if the url_prefix was /foo and the path received from SCRIPT_NAME to /foo. Note that the change we made has no effect on paths that do not match the url_prefix exactly (such as /foo/bar); these continue to operate as they did. See https://github.com/Pylo0 码力 | 55 页 | 56.36 KB | 1 年前3
waitress Documentation v3.0.1the Waitress server's trusted_proxy to contain the IP address of the proxy. #### 1.3.3 Using url_prefix to influence SCRIPT_NAME and PATH_INFO You can have the Waitress server use a particular url prefix SCRIPT_NAME into account.: from waitress import serve serve(wsgiapp, listen='0.0.0.0:8080', url_prefix='/foo') Setting this to any value except the empty string will cause the WSGI SCRIPT_NAME 0:8080', unix_socket=None, unix_socket_perms='600', threads=4, url_scheme='http', url_prefix='', ident='waitress', backlog=1024, recv_bytes=8192, send_bytes=1, outbuf_overflow=1048560 码力 | 119 页 | 339.46 KB | 1 年前3
The Weblate Manual 4.0.2granted Additionally, you will have to adjust weblate/settings.py: URL_PREFIX = '/weblate' #### 2.1.11 Background tasks using Celery New in version 3.2. Weblate uses can be achieved by setting WSGIScriptAlias. Hint: The prefix should start with a /. Example: URL_PREFIX = '/translations' Note: This setting does not work with Django’s built-in server, you timezone-aware datetimes. USE_TZ = True # URL prefix to use, please see documentation for more details URL_PREFIX = "" # Absolute filesystem path to the directory that will hold user-uploaded files. MEDIA_ROOT0 码力 | 363 页 | 3.59 MB | 2 年前3
共 313 条
- 1
- 2
- 3
- 4
- 5
- 6
- 32
相关搜索词
vendored asyncoreIPv6 支持反向代理Forwarded 头url_prefixSUGGESTION_CLEANUP_DAYSUPDATE_LANGUAGESURL_PREFIX版本更新功能改进WSGI服务器Python支持版本问题Weblate翻译项目机器翻译质量检查文件格式支持outbuf_high_watermarksend_bytessocket activationHTTP标准遵循预绑定套接字服务器头HTTP响应asyncore兼容性服务器头信息HTTP标准Transfer-Encodingtrusted proxy headersloggingheaderssecurityBugfixesCompatibilityDocumentationFeaturesSecuritytranslationconfigurationrepositoryaddon













