Minor typos and spelling fixed
Before adoption: this commit came in with the history the project adopted, so no landing records it.
According to http://dictionary.cambridge.org/ "webserver" is incorrect, "web server" = correct
authored by Mieszko · committed by Mieszko · parent a1b2736 · Browse files · 1 file·+7 added−7 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+7 added−7 removed
- other:+7 added−7 removed
Provenance
- Commit
2cfdf7a- Tree
84bc67c- Author
Mieszko <mieszko.chowaniec@gmail.com>- Committer
Mieszko <mieszko.chowaniec@gmail.com>- Parent
a1b2736
1 file changed+7 added−7 removed
modified:docs/deploying/fastcgi.rst+7 added-7 removed
77 unmodified lines78 SetHandler fastcgi-script79 </Location>80 </VirtualHost>81 82-These processes will be managed by Apache. If you're using an standalone82+These processes will be managed by Apache. If you're using a standalone83 FastCGI server, you can use the FastCgiExternalServer directive instead.84 Note that in the following the path is not real, it's simply used as an85 identifier to other86 directives such as AliasMatch::87 88 FastCgiServer /var/www/html/yourapplication -host 127.0.0.1:300089 90-If you cannot set ScriptAlias, for example on an shared web host, you can use90+If you cannot set ScriptAlias, for example on a shared web host, you can use91 WSGI middleware to remove yourapplication.fcgi from the URLs. Set .htaccess::92 93 <IfModule mod_fcgid.c>94 AddHandler fcgid-script .fcgi72 unmodified lines167 168 Installing FastCGI applications on nginx is a bit different because by169 default no FastCGI parameters are forwarded.170 171-A basic flask FastCGI configuration for nginx looks like this::171+A basic Flask FastCGI configuration for nginx looks like this::172 173 location = /yourapplication { rewrite ^ /yourapplication/ last; }174 location /yourapplication { try_files $uri @yourapplication; }175 location @yourapplication {18 unmodified lines194 195 Running FastCGI Processes196 -------------------------197 198-Since Nginx and others do not load FastCGI apps, you have to do it by198+Since nginx and others do not load FastCGI apps, you have to do it by199 yourself. `Supervisor can manage FastCGI processes.200 <http://supervisord.org/configuration.html#fcgi-program-x-section-settings>`_201 You can look around for other FastCGI process managers or write a script202 to run your `.fcgi` file at boot, e.g. using a SysV ``init.d`` script.6 unmodified lines209 210 Debugging211 ---------212 213-FastCGI deployments tend to be hard to debug on most webservers. Very213+FastCGI deployments tend to be hard to debug on most web servers. Very214 often the only thing the server log tells you is something along the215 lines of "premature end of headers". In order to debug the application216 the only thing that can really give you ideas why it breaks is switching217 to the correct user and executing the application by hand.218 219 This example assumes your application is called `application.fcgi` and220-that your webserver user is `www-data`::220+that your web server user is `www-data`::221 222 $ su www-data223 $ cd /var/www/yourapplication224 $ python application.fcgi3 unmodified lines228 229 In this case the error seems to be "yourapplication" not being on the230 python path. Common problems are:231 232-- Relative paths being used. Don't rely on the current working directory232+- Relative paths being used. Don't rely on the current working directory.233 - The code depending on environment variables that are not set by the234 web server.235 - Different python interpreters being used.236 4 unmodified lines