Author: julian Date: Fri Jun 2 15:54:55 2006 New Revision: 15 Modified: thingy-config/httpd.conf
Log: thingy-config/httpd.conf * Enabled basic mod_perl support. Modified: thingy-config/httpd.conf ============================================================================== --- thingy-config/httpd.conf (original) +++ thingy-config/httpd.conf Fri Jun 2 15:54:55 2006 @@ -1,15 +1,34 @@ -SetEnv THINGY_INSTANCE spf -SetEnv THINGY_RESTRICTED 1 -SetEnv THINGY_AUTH_URL http://new.openspf.org/auth +PerlOptions +ParseHeaders -SetEnv TZ UTC +#SetEnv THINGY_INSTANCE spf +PerlSetEnv THINGY_INSTANCE spf + +#SetEnv THINGY_RESTRICTED 1 +#SetEnv THINGY_AUTH_URL http://new.openspf.org/auth + +#SetEnv TZ UTC +PerlSetEnv TZ UTC Alias /robots.txt /etc/thingy/instances/spf/static/robots.txt Alias /static /etc/thingy/instances/spf/static Alias /blobs /var/lib/thingy/spf/blobs -ScriptAlias /auth /usr/lib/cgi-bin/thingy -ScriptAlias / /usr/lib/cgi-bin/thingy/ +#ScriptAlias /auth /usr/lib/cgi-bin/thingy +#ScriptAlias / /usr/lib/cgi-bin/thingy/ +Alias /auth /usr/lib/cgi-bin/thingy +Alias / /usr/lib/cgi-bin/thingy/ + +<LocationMatch "^/"> + SetHandler perl-script + PerlResponseHandler ModPerl::PerlRun + + PerlSetEnv THINGY_RESTRICTED 1 + PerlSetEnv THINGY_AUTH_URL http://new.openspf.org/auth +</LocationMatch> + +<LocationMatch "^/(robots\.txt|static|blobs|favicon\.ico|access-stats|icons|source|svn|viewcvs)(/|$)"> + SetHandler none +</LocationMatch> <LocationMatch "^/auth(/|$)"> AuthName "SPF Internals" @@ -19,12 +38,19 @@ AuthDigestGroupFile /etc/apache2/users/spf.groups Require group webmasters council - SetEnv AUTH_NAME "SPF Internals" - SetEnv AUTH_TYPE Digest - SetEnv AUTH_USERDB_TYPE File - SetEnv AUTH_USERDB_FILE /etc/apache2/users/spf.htdigest + PerlSetEnv AUTH_NAME "SPF Internals" + PerlSetEnv AUTH_TYPE Digest + PerlSetEnv AUTH_USERDB_TYPE File + PerlSetEnv AUTH_USERDB_FILE /etc/apache2/users/spf.htdigest - SetEnv THINGY_RESTRICTED 0 +# SetEnv THINGY_RESTRICTED 0 +</LocationMatch> + +<LocationMatch "^/auth(?!/(static|blobs)(/|$))"> + SetHandler perl-script + PerlResponseHandler ModPerl::PerlRun + + PerlSetEnv THINGY_RESTRICTED 0 </LocationMatch> ErrorDocument 401 /static/unauthorized ------- To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/[EMAIL PROTECTED]
