commit 0987cbbf68ffef7d9c4ed346f99f4ef2b6fc6273
parent 64da3a6e09d5d6baa425b146550acf6bbb77d9ea
Author: dankert <devnull@localhost>
Date: Fri, 16 Feb 2007 00:11:35 +0100
Beispiel-Konfigurationen f?r Apache-Webserver.
Diffstat:
3 files changed, 49 insertions(+), 22 deletions(-)
diff --git a/doc/examples/htaccess/php-settings-example.htaccess b/doc/examples/htaccess/php-settings-example.htaccess
@@ -1,15 +1,21 @@
-# .htaccess
+# $Id$
#
-# Control file for use with the Apache Webserver
-# Here we are doing some useful settings
+# Override PHP Settings.
#
-# Make sure to have "AllowOverride Options" or "AllowOverride All" set in httpd.conf
-# to make this possible.
-# If you get an "Internal Server Error" you do not have this setting
+# Here we are doing some useful settings. Just copy this
+# file to the OpenRat root directory and rename it to '.htaccess'.
+#
+# This is not done by default, because there are servers which do not allow .htaccess files.
+#
+
+# Make sure to have "AllowOverride Options" or "AllowOverride All" setting in your httpd.conf
+# or virtual domain setting.
+# If you get an "Internal Server Error" you are maybe not allowed to have an '.htaccess' file.
#
-# $Id$
-# No need for register globals :-)
+# These are only examples. Comment them out if you do not know what you are doing.
+
+# There is no need for register globals :-)
php_flag register_globals off
# Change this to anything you like. Must be a valid URL variable name
@@ -28,7 +34,7 @@ php_flag session.auto_start off
php_value session.cookie_lifetime 0
# Want to use cookies?
-# Because trans_sid is off, you can EITHER use cookies OR url rewriting
+# If trans_sid is off, you can EITHER use cookies OR url rewriting
# off = url rewriting
# on = cookies
php_flag session.use_cookies off
@@ -55,15 +61,9 @@ php_value error_reporting 2047
# This limits the file sizes
php_value memory_limit 32M
-# Let this be off because we use <?php ... ?>
+# Leave this at 'off'. No need for it.
php_flag short_open_tag off
php_flag asp_tags off
# Try this, its faster on slow connections
php_flag zlib.output_compression off
-
-
-
-#Options FollowSymLinks
-RewriteEngine on
-RewriteRule ([a-z]+)\,([a-z]*)\.?([0-9]*)$ do.php?action=$1&subaction=$2&id=$3&%{QUERY_STRING}-
\ No newline at end of file
diff --git a/doc/examples/htaccess/ssl-example.htaccess b/doc/examples/htaccess/ssl-example.htaccess
@@ -0,0 +1,21 @@
+# SSL-Configuration Example
+#
+# See http://httpd.apache.org/docs/2.0/mod/mod_ssl.html for more details.
+# $Id$
+
+# Verify the client is a good idea
+SSLVerifyClient require
+SSLVerifyDepth 3
+
+SSLCACertificateFile /etc/.../ssl/CA/myca.crt
+SSLCACertificatePath /etc/.../ssl/CA
+
+SSLOptions +StrictRequire +StdEnvVars +OptRenegotiate
+
+SSLRequireSSL
+
+# Some details
+SSLRequire %{SSL_CLIENT_S_DN_O} eq "Openrat Company" and \
+ %{SSL_CLIENT_S_DN_OU} in {"Peter", "Bob", "Justus"}
+
+SSLUserName SSL_CLIENT_S_DN_CN
diff --git a/doc/examples/htaccess/url-example.htaccess b/doc/examples/htaccess/url-example.htaccess
@@ -1,7 +1,15 @@
-# Copy this into your .htaccess
-# you need the rewriting module loaded in your apache
+# For security (or coolness) reasons you are able to fake the url and
+# hide that you are using PHP. Hmm.
+# There is no real reason to use this, but if you want play... just play.
-#Options FollowSymLinks
RewriteEngine on
-RewriteRule ([a-z]+)\,([a-z]*)\.?(\-?[0-9]*)$ do.php?action=$1&subaction=$2&id=$3&%{QUERY_STRING}-
\ No newline at end of file
+RewriteRule ([a-z]+)\,([a-z]*)\,?(\-?[0-9]*).do$ /openrat/do.php?action=$1&subaction=$2&id=$3&%{QUERY_STRING}
+
+# ATTENTION, this must be synchronized with your configuration.
+# The above example needs a setting in 'interface.ini.php':
+# ...
+# [url]
+# ...
+# url_format= "%s,%s,%d.do"
+# ...