Skip to content
Myr

Added #522 in modified version

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent b048272 · Browse files · 1 file+12 added−1 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+12 added−1 removed

  • other:+12 added−1 removed

1 file+12 added−1 removed

modified:docs/deploying/cgi.rst+12 added-1 removed
33 unmodified lines
34Usually there are two ways to configure the server. Either just copy the35`.cgi` into a `cgi-bin` (and use `mod_rewrite` or something similar to36rewrite the URL) or let the server point to the file directly.3738In Apache for example you can put a like like this into the config:38In Apache for example you can put something like this into the config:3940.. sourcecode:: apache4142 ScriptAlias /app /path/to/the/application.cgi4344On shared webhosting, though, you might not have access to your Apache config.45In this case, a file called `.htaccess`, sitting in the public directory you want46your app to be available, works too but the `ScriptAlias` directive won't47work in that case:4849.. sourcecode:: apache50 51 RewriteEngine On52 RewriteCond %{REQUEST_FILENAME} !-f # Don't interfere with static files53 RewriteRule ^(.*)$ /path/to/the/application.cgi/$1 [L]5455For more information consult the documentation of your webserver.5657.. _App Engine: http://code.google.com/appengine/