forked from orbit-oss/flask
Fixed small typos in docs. Added a cross-ref.
This commit is contained in:
parent
216478f715
commit
6875a057ec
19 changed files with 27 additions and 27 deletions
|
|
@ -38,7 +38,7 @@ Server Setup
|
|||
------------
|
||||
|
||||
Usually there are two ways to configure the server. Either just copy the
|
||||
`.cgi` into a `cgi-bin` (and use `mod_rerwite` or something similar to
|
||||
`.cgi` into a `cgi-bin` (and use `mod_rewrite` or something similar to
|
||||
rewrite the URL) or let the server point to the file directly.
|
||||
|
||||
In Apache for example you can put a like like this into the config:
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ webserver user is `www-data`::
|
|||
$ cd /var/www/yourapplication
|
||||
$ python application.fcgi
|
||||
Traceback (most recent call last):
|
||||
File "yourapplication.fcg", line 4, in <module>
|
||||
File "yourapplication.fcgi", line 4, in <module>
|
||||
ImportError: No module named yourapplication
|
||||
|
||||
In this case the error seems to be "yourapplication" not being on the python
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ For more information consult the `mod_wsgi wiki`_.
|
|||
.. _virtual python: http://pypi.python.org/pypi/virtualenv
|
||||
.. _mod_wsgi wiki: http://code.google.com/p/modwsgi/wiki/
|
||||
|
||||
Toubleshooting
|
||||
--------------
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
If your application does not run, follow this guide to troubleshoot:
|
||||
|
||||
|
|
|
|||
|
|
@ -69,10 +69,10 @@ If you deploy your application behind an HTTP proxy you will need to
|
|||
rewrite a few headers in order for the application to work. The two
|
||||
problematic values in the WSGI environment usually are `REMOTE_ADDR` and
|
||||
`HTTP_HOST`. Werkzeug ships a fixer that will solve some common setups,
|
||||
but you might want to write your own WSGI middlware for specific setups.
|
||||
but you might want to write your own WSGI middleware for specific setups.
|
||||
|
||||
The most common setup invokes the host being set from `X-Forwarded-Host`
|
||||
and the remote address from `X-Forwared-For`::
|
||||
and the remote address from `X-Forward-For`::
|
||||
|
||||
from werkzeug.contrib.fixers import ProxyFix
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue