mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI and will have access to advanced features such as ability to retain database connections and other data between hits and access to Apache internals.
Adding permission to serve the htdocs directory
In some (sane) Linux distributions (like SuSE 9.0) serving directories other than the
document-root “/srv/www/htdocs” with Apache is switched off by default for
security reasons in “/etc/httpd/httpd.conf” (or for Apache2 “/etc/apache2/httpd.conf”):
# forbid access to the entire filesystem by default
Deny from all
To allow Apache to serve directories outside of the document root you have to add these
lines to “/etc/httpd/httpd.conf” (in SuSE it is recommended to create a new “http.conf.local” and
include this file in “/etc/sysconfig/apache2”):
Alias /wiki/ "/usr/share/moin/htdocs/"
Allow from all
ScriptAlias /mywiki "/usr/share/moin/mywiki/cgi-bin/moin.cgi"
Allow from all
… Read More Python working on Apache
Most if not all web developers and server administrators struggle with Apache mod_rewrite. It’s very tough and only gets a little easier with practice. Until Now! Get ready to explode your learning curve,…. The following undocumented techniques and methods will allow you to utilize mod_rewrite at an “expert level” by showing you how to unlock its secrets.
… Read More Advanced mod_rewrite Expert Tricks
htaccess Guide Sections htaccess tricks for Webmasters HTTP Header control with htaccess mod_php or php as a cgi with htaccess tips, htaccess php tricks SEO Redirects without mod_rewrite mod_rewrite tips and tricks with RewriteEngine, RewriteBase, RewriteRule, and RewriteCond Caching, cache-control, cache, expires, and optimizing htaccess htaccess from the Apache htaccess tutorial. Check out and use… Read More htaccess tips
Apache Documentation First, here are several links to the definitive source for Apache 1.3 and Apache 2.0 specifically related to using .htaccess, especially for redirecting URLs and blocking bad bots and spammers. Apache 1.3 Apache 1.3: Authentication, Authorization, and Access Control Apache 1.3: Module mod_access Apache 1.3: Module mod_rewrite URL Rewriting Engine Apache 1.3: Module… Read More htaccess and .htaccess rewrite links