473,287 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

some question with Quixote and Nginx

hi,
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):
"""
<h4>Hello,Blog</h4>
<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):
"""
aaaaaaaaaaa
"""

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

other:
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.)

==================================
nginx.conf:
location / {
fastcgi_pass 127.0.0.1:8000;
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;
}

fastcgi:
spawn-fcgi -a 127.0.0.1 -p 8000 -f fastcgi_server.py -u nginx -P /var/
log/nginx/qfcgi.pid
thanks!
Jun 27 '08 #1
0 707

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Patrick Useldinger | last post by:
Hi all, after my unsuccessful try to run Apache 2 with mod_python and Python 2.3, I am looking for an alternative approach. My aim is to write a small web-based application: Python - the...
7
by: Ernie | last post by:
I am trying out the quixote 1.0 demo in my linux box. I am able to view the main demo page using http://localhost/cgi-bin/demo.cgi with the HelloWorld on top of the page but I was wondering where...
3
by: flab ba | last post by:
Hello: I am new to web app programming, but need to create a web app. I would like to do it in Python After extensive googling, reading news groups, blogs, and outdated / incomplete "web app...
12
by: MJR | last post by:
Hi, anybody could recommend web hosting company which offer professional reseller package with Python, preferable located in Europe? Thanks, Mike
5
by: Titi Anggono | last post by:
Hi all, I have some questions: 1. Can we use Tkinter for web application such as Java ? 2. I use gnuplot.py module for interfacing with gnuplot in linux. Can we make the plot result shown in...
15
by: Birahim FALL | last post by:
Hi, I'm very fresh to PostgreSQL, coming from Oracle. I want to developp web applications based on apache and postgresql. Is there an equivalent of OWA server (Oracle Web Application server) for...
0
by: jiguorui | last post by:
# I write a quixote demo like this: equest = get_request() request.response.set_cookie('usr_name', 'Jim', path='/') request.response.set_cookie('usr_id', '1', path='/') #but only usr_name can...
3
Dheeraj Joshi
by: Dheeraj Joshi | last post by:
Hi... I installed nginx in to fedora core 4 to host few php pages. it is in /usr/local/nginx config file look like: location ~ \.php$ { root html; ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.