By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,675 Members | 2,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,675 IT Pros & Developers. It's quick & easy.

some question with Quixote and Nginx

P: n/a
i have some question with this,quixote publish width FastCGI.the two
scripts like this(root.ptl and hello.ptl):

class RootDirectory(Directory):
_q_exports = ["", "hello"]

def _q_index [html] (self):
<li><a href="hello/">hello</a></li>
hello = HelloDirectory()

class HelloDirectory(Directory):
_q_exports = ["", "hi"]

def _q_index [html] (self):
<h4>hello page</h4>
<li><a href="/">back home</a></li>

def hi [html] (self):

now, on the firefox input:
http://localhost/hello/ --this ok
http://localhost/hello --this will forward http://localhost/hello/hello/
, error.

http://localhost/hello/hi --this ok
http://localhost/hello/hi/ --http://localhost/hello/hi//hello/hi/

i think,some problem with Nginx(PATH_INFO is not correct.)

location / {
fastcgi_param SERVER_NAME nginx;
fastcgi_param PATH_INFO $request_uri;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors off;

spawn-fcgi -a -p 8000 -f -u nginx -P /var/
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.