Web.py as CGI
Step 1: Main Files
Upload web.py, flup, and your code.py to /public_html/
Step 2: CHMOD
CHMOD code.py 755
Step 3: .htaccess
This .htaccess file works great for me:
AddHandler cgi-script .py
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/css
RewriteCond %{REQUEST_URI} !^/images
RewriteCond %{REQUEST_URI} !^/scripts
RewriteCond %{REQUEST_URI} !^/templates
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteCond %{REQUEST_URI} !^/sitemap.xml$
RewriteCond %{REQUEST_URI} !^(/.*)+code.py/
RewriteRule ^(.*)$ code.py/$1 [PT]
</IfModule>
Step 4: There Is No Step 4
Go to http://yoursite.com or http://sub.yoursite.com to see it in action!
"...but ASO support FastCGI!"
I haven't had much time to delve into FCGI on ASO. This thread on the ASO forums might be of use to anyone who makes an attempt.
last updated 1 year ago
#
history