May be that this link help you:
http://teago.futuria.com.br/tip/4/
Tiago
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
Tiago de Souza Moraes Skype & Gtalk teagom
Enviroment Linux Debian and Ubuntu
Public profile
http://www.linkedin.com/pub/tiago-souza-moraes/32/130/599
AddHandler fastcgi-script .fcgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]So, my .htaccess file looks just like that (with "mysite" replaced with the real name of the script). The part I don't understand is the slash between the script name and the placeholder $1. The way the filesystem syntax works, that slash tells Apache (and indirectly, the OS) that mysite.fcgi is a directory name, but it's a file, which Apache won't be able to find if it thinks mysite.fcgi is a directory in which it's supposed to find the requested resource (whatever's plugged in for the "$1" placeholder), hence the "not found" message. I'm sure there's a simple piece I'm missing here, but I just don't see it.
"Then, create a small script that tells Apache how to spawn your FastCGI program. Create a file mysite.fcgi and place it in your Web directory, and be sure to make it executable: ...."
> So, my .htaccess file looks just like that (with "mysite" replaced
> with the real name of the script). The part I don't understand is the
> slash between the script name and the placeholder $1. The way the
> filesystem syntax works, that slash tells Apache (and indirectly, the
> OS) that mysite.fcgi is a directory name, but it's a file, which
> Apache won't be able to find if it thinks mysite.fcgi is a directory
> in which it's supposed to find the requested resource (whatever's
> plugged in for the "$1" placeholder), hence the "not found" message.
> I'm sure there's a simple piece I'm missing here, but I just don't
> see it.
Apache doesn't quite work that way. If the part before a slash
corresponds to a file, it'll use that file and pass the rest to the
request processor.
> Apache doesn't quite work that way. If the part before a slash
> corresponds to a file, it'll use that file and pass the rest to the
> request processor.
Ah, very clever. I can confirm what you say by changing the
AddHandler directive from
AddHandler fcgid-script .fcgi
to
AddHandler cgi-script .fcgi
So, when Apache was telling me (when the first version of the
AddHandler directive was in play) "The requested URL
"/appname.fcgi/admin was not found on this server" (the error message
leading me to the incorrect conclusion that Apache interpreted the
file path syntax the same way Unix does) what it really meant was
"your hosting provider hasn't set up mod_fcgid properly." Odd way to
communicate that problem. So I guess I'll have to go back to my
hosting provider and ask why this isn't working, in spite of
documentation on their site implying that it should.
Thank you very much for getting me unstuck from the misleading Apache
error message.
--
Bob Kline
http://www.rksystems.com
mailto:bkl...@rksystems.com
> So, when Apache was telling me (when the first version of the
> AddHandler directive was in play) "The requested URL
> "/appname.fcgi/admin was not found on this server" (the error message
> leading me to the incorrect conclusion that Apache interpreted the
> file path syntax the same way Unix does) what it really meant was
> "your hosting provider hasn't set up mod_fcgid properly." Odd way to
> communicate that problem. So I guess I'll have to go back to my
> hosting provider and ask why this isn't working, in spite of
> documentation on their site implying that it should.
To close the loop, the problem (as I suspected, once Dan straightened
me out about how Apache interprets URI path names) was that the
hosting service had a mis-configured server. Works now. Thanks
again, everyone. Excellent forum!