Hi guys,
I just made some fixes to the mirrors I run at:
http://tor.askapache.com/
http://tor.askapache.com/dist/
This is the .htaccess file that I came up with, note I painstakingly
determined the languages.. (In the future it would be great to get each
corresponding charset for the AddCharset directive)
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
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
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/"
<Directory "/usr/share/moin/htdocs/">
Order deny,allow
Allow from all
</Directory>
ScriptAlias /mywiki "/usr/share/moin/mywiki/cgi-bin/moin.cgi"
<Directory "/usr/share/moin/mywiki/cgi-bin">
Order deny,allow
Allow from all
</Directory>
By Fastserve
|
Posted in Python
| Tags: .htaccess mod rewrite, .htaccess rewrite rule, apache, htaccess, httpd.conf, mac, mod_python, moin, Python, rewrite .htaccess, voodoo |

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.
By Fastserve
|
Posted in apache, htaccess, htaccess rewrite
| Tags: .htaccess rewrite rule, apache, htaccess, htaccess rewrite, htaccess rewrite url, htaccess tips, htaccess tips tricks, mod_rewrite, rewrite .htaccess, rewriterule |
October 26, 2008 – 4:36 pm
Here are some myths about running CherryPy behind mod_rewrite:
Myth 1: using mod_rewrite will make my site slower
If you’re talking about raw HTTP speed then yes, using mod_rewrite does add a little bit of overhead. On my current laptop, a benchmark of CherryPy exposed gave 460 requests/second (2.2ms/req), and a benchmark of CherryPy running behind Apache [...]
September 25, 2008 – 2:26 am
Accessing CGI environment variables created by mod_ssl from within Plone
This way you will get HTTP_SSL_CLIENT_VERIFY, HTTP_SSL_CLIENT_S_DN_CN and HTTP_SSL_CLIENT_S_DN_Email environment variables in the request object.
Posted by mustapha
Problem:
You need to setup Zope behind Apache with SSL and you need to access some/all of the CGI environment variables set by the mod_ssl from within Plone. How to do [...]
September 15, 2008 – 3:01 am
This article will teach you how to use the .htaccess (hypertext access) file to properly redirect web pages or domain names. Using htaccess redirect is the best way to redirect when it comes to search engine optimization.
The .htaccess file is actually the name of Apache’s directory-level configuration file. The code displayed in the .htaccess [...]
September 13, 2008 – 5:40 pm
1. Introduction to .htaccess files
2. FileTypes
3. Handlers
4. URL Rewriting
5. User authentication
6. Host-based access control
7. Directory indexing
September 12, 2008 – 3:57 am
.htaccess File Generators, .htaccess Creators, Generating .htaccess files
.htpasswd password file Generator Tool
.htpasswd Tool generates correct Basic Authentication string from any valid username and password to be placed in Apache’s htpasswd file
WordPress .htaccess Security
This plugin is specifically designed and regularly updated specifically to stop automated and unskilled attackers attempts to exploit vulnerabilities on your blog resulting [...]
By Fastserve
|
Posted in apache, htaccess, htaccess rewrite
| Tags: .htaccess creators, .htaccess files, .htaccess generators, .htaccess makers, .htaccess tutorial, how to create .htaccess files, htaccess, online tool, tools |
August 12, 2008 – 3:57 am
Alias /icons/ "/usr/local/dh/apache/template/icons/"
<Directory "/usr/local/dh/apache/template/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# This Alias will project the on-line documentation tree under /manual/
# even if you change the DocumentRoot. Comment it if you don't want to
# provide access to the on-line documentation.
#
Alias /manual/ "/usr/local/dh/apache/template/docs/manual/"
<Directory "/usr/local/dh/apache/template/docs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#