Hi all,

I have a pretty generic question regarding the way Apache interacts with
web.py through CGI / FCGI.

* *CGI*

The best practice is to rewrite the URLS to hit code.py, such as :

.htaccess
RewriteRule ^(.*)$ /code.py/$1 [PT]

* *Fast CGI*

The best practice is to rewrite the URLS to hit a dispatcher, such as :

.htaccess
RewriteRule ^/?(.*)$ dispatch.fcgi/$1 [L]

dispatch.fcgi
import code
code.app.run()

However I'm not sure to understand the internals.

In the first case (CGI), I assume that code.py gets instantiated at every
request, figures out that it's called via CGI, and parses $1 to send back
the right information to Apache.
However, in the second case, how does the $1 string gets through
dispatch.fcgi to web.py ?

Thanks for your lights !
Franck

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to