Apache + .htaccess + mod_fastcgi in shared host + 404 Not Found

39 views
Skip to first unread message

Leandro Severino

unread,
Nov 30, 2012, 8:12:43 AM11/30/12
to we...@googlegroups.com
Friends,

   I put all files of my web.py project (code.py, views.py and etc) in the public_html folder:
 
   My .htaccess (in a shared host)(in the public_html folder):

<Files code.py>
    SetHandler fastcgi-script
</Files>

AddHandler fcgid-script .py
AddHandler fcgid-script .fcgi

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteCond %{REQUEST_URI} !^(/.*)+code.py/
RewriteRule ^(.*)$ code.py/$1 [PT]

Well, when I try access my website: http://www.busquecursos.com.br give-me this error message:

Not Found

The requested URL /code.py/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any ideia, tip or suggestion ?

-- Leandro.
Reply all
Reply to author
Forward
0 new messages