Permalink
Comparing changes
Open a pull request
- 1 commit
- 2 files changed
- 0 commit comments
- 1 contributor
Unified
Split
Showing
with
6 additions
and 8 deletions.
- +3 −3 docs/reverse-proxy.rst
- +3 −5 docs/runner.rst
| @@ -17,7 +17,7 @@ your reverse proxy to pass along the ``Host`` header sent by the client to | ||
| Waitress, in either case, as it will be used by most applications to generate | ||
| correct URLs. | ||
| For example, when using Nginx as a reverse proxy, you might add the following | ||
| For example, when using nginx as a reverse proxy, you might add the following | ||
| lines in a ``location`` section:: | ||
| proxy_set_header Host $host; | ||
| @@ -66,7 +66,7 @@ Passing the ``X_FORWARDED_PROTO`` header to set ``wsgi.url_scheme`` | ||
| If your proxy accepts both HTTP and HTTPS URLs, and you want your application | ||
| to generate the appropriate url based on the incoming scheme, also set up | ||
| your proxy to send a ``X-Forwarded-Proto`` with the original URL scheme along | ||
| with each proxied request. For example, when using Nginx:: | ||
| with each proxied request. For example, when using nginx:: | ||
| proxy_set_header X-Forwarded-Proto $scheme; | ||
| @@ -131,7 +131,7 @@ the client to your Waitress server, as well as sending along a | ||
| If your proxy accepts both HTTP and HTTPS URLs, and you want your application | ||
| to generate the appropriate url based on the incoming scheme, also set up | ||
| your proxy to send a ``X-Forwarded-Proto`` with the original URL scheme along | ||
| with each proxied request. For example, when using Nginx:: | ||
| with each proxied request. For example, when using nginx:: | ||
| proxy_set_header X-Forwarded-Proto $scheme; | ||
| @@ -3,13 +3,11 @@ | ||
| waitress-serve | ||
| -------------- | ||
| Waitress comes bundled with a thin command-line wrapper around the | ||
| ``waitress.serve`` function called ``waitress-serve``. This is useful for | ||
| development, and in production situations where serving of static assets is | ||
| delegated to a reverse proxy, such as Nginx or Apache. | ||
| .. versionadded:: 0.8.4 | ||
| Waitress comes bundled with a thin command-line wrapper around the ``waitress.serve`` function called ``waitress-serve``. | ||
| This is useful for development, and in production situations where serving of static assets is delegated to a reverse proxy, such as nginx or Apache. | ||
| ``waitress-serve`` takes the very same :ref:`arguments <arguments>` as the | ||
| ``waitress.serve`` function, but where the function's arguments have | ||
| underscores, ``waitress-serve`` uses hyphens. Thus:: | ||