PyukiWiki CVS Commit
pyuki****@lists*****
2012年 3月 18日 (日) 13:33:14 JST
Index: PyukiWiki-Devel-UTF8/.htaccess diff -u PyukiWiki-Devel-UTF8/.htaccess:1.331 PyukiWiki-Devel-UTF8/.htaccess:1.332 --- PyukiWiki-Devel-UTF8/.htaccess:1.331 Sun Mar 18 12:01:39 2012 +++ PyukiWiki-Devel-UTF8/.htaccess Sun Mar 18 13:33:14 2012 @@ -1,11 +1,110 @@ ###################################################################### -# Apache wiki/.htaccess for PyukiWiki -# $Id: .htaccess,v 1.331 2012/03/18 03:01:39 papu Exp $ +# Apache .htaccess for PyukiWiki +# $Id: .htaccess,v 1.332 2012/03/18 04:33:14 papu Exp $ # "PyukiWiki" ver 0.2.0-p3 $$ ###################################################################### -Order allow,deny -Deny from all +DirectoryIndex nph-index.cgi index.cgi wiki.cgi pyukiwiki.cgi index.php index.html index.htm -## Options can use, it is good to add the following setup. -#Options -Indexes +<FilesMatch "\.(ini\.cgi|pl|txt)$"> + Order allow,deny + Deny from all +</FilesMatch> + +<FilesMatch "^robots\.txt$"> + Order deny,allow + Allow from all +</FilesMatch> + +<FilesMatch "^\.ht"> + Order allow,deny + Deny from all +</FilesMatch> + +## If using non extension cgi script, please comment out. +## example: using urlhack.inc.cgi + $use_path_info=1 +#<FilesMatch "^wiki$"> +# ForceType application/x-httpd-cgi +#</FilesMatch> + +## Authentication to this directory with basic-auth +## needs 'AllowOverride AuthConfig' at httpd.conf +#AuthType Basic +#AuthName "Authentication required" +#AuthUserFile /fullpath/.htpasswwd +#AuthGroupFile /dev/null +#Require valid-user + +## If using POST method authing with basic-auth (for SPAM attack measures) +## needs 'AllowOverride AuthConfig' at httpd.conf +## Please write it in that opportunity FrontPage. +## (password is blank) +#<Limit POST> +# AuthType Basic +# AuthName "Please Input Username: user" +# AuthUserFile /fullpath/.htpasswd +# AuthGroupFile /dev/null +# Require valid-user +# require valid-user +#</Limit> + +## sample of rewrite engine !!if use urlhack.cgi this comment out please +#RewriteEngine on +#RewriteBase / +# +#RewriteCond %{REQUEST_URI} !^/(attach|cache|image|skin) +#RewriteRule ^\?(.*)$ ./index.cgi?$1 [L] +#RewriteCond %{REQUEST_URI} !^/(attach|cache|image|skin) +#RewriteRule ^(.+)/$ ./index.cgi/$1 [L] +#RewriteCond %{REQUEST_URI} !^/(attach|cache|image|skin) +#RewriteRule ^$ ./index.cgi [L] +# +# or... +# +#RewriteCond %{REQUEST_URI} !^/(attach|cache|image|skin) +#RewriteRule ^\?(.*)$ /cgi-bin/w?$1 [L] +#RewriteCond %{REQUEST_URI} !^/(attach|cache|image|skin) +#RewriteRule ^(.+)/$ /cgi-bin/w/$1 [L] +#RewriteCond %{REQUEST_URI} !^/(attach|cache|image|skin) +#RewriteRule ^$ /cgi-bin/w [L] + +## use servererror.inc.pl, comment delete it. +## what ? replace ./nph-index.cgi -> ./index.cgi ? +#ErrorDocument 400 ./nph-index.cgi?cmd=servererror +#ErrorDocument 401 ./nph-index.cgi?cmd=servererror +#ErrorDocument 402 ./nph-index.cgi?cmd=servererror +#ErrorDocument 403 ./nph-index.cgi?cmd=servererror +#ErrorDocument 404 ./nph-index.cgi?cmd=servererror +#ErrorDocument 405 ./nph-index.cgi?cmd=servererror +#ErrorDocument 406 ./nph-index.cgi?cmd=servererror +#ErrorDocument 407 ./nph-index.cgi?cmd=servererror +#ErrorDocument 408 ./nph-index.cgi?cmd=servererror +#ErrorDocument 409 ./nph-index.cgi?cmd=servererror +#ErrorDocument 410 ./nph-index.cgi?cmd=servererror +#ErrorDocument 411 ./nph-index.cgi?cmd=servererror +#ErrorDocument 412 ./nph-index.cgi?cmd=servererror +#ErrorDocument 413 ./nph-index.cgi?cmd=servererror +#ErrorDocument 414 ./nph-index.cgi?cmd=servererror +#ErrorDocument 415 ./nph-index.cgi?cmd=servererror +#ErrorDocument 416 ./nph-index.cgi?cmd=servererror +#ErrorDocument 417 ./nph-index.cgi?cmd=servererror +#ErrorDocument 418 ./nph-index.cgi?cmd=servererror +#ErrorDocument 419 ./nph-index.cgi?cmd=servererror +#ErrorDocument 420 ./nph-index.cgi?cmd=servererror +#ErrorDocument 421 ./nph-index.cgi?cmd=servererror +#ErrorDocument 422 ./nph-index.cgi?cmd=servererror +#ErrorDocument 423 ./nph-index.cgi?cmd=servererror +#ErrorDocument 424 ./nph-index.cgi?cmd=servererror +#ErrorDocument 425 ./nph-index.cgi?cmd=servererror +#ErrorDocument 426 ./nph-index.cgi?cmd=servererror +#ErrorDocument 500 ./nph-index.cgi?cmd=servererror +#ErrorDocument 501 ./nph-index.cgi?cmd=servererror +#ErrorDocument 502 ./nph-index.cgi?cmd=servererror +#ErrorDocument 503 ./nph-index.cgi?cmd=servererror +#ErrorDocument 504 ./nph-index.cgi?cmd=servererror +#ErrorDocument 505 ./nph-index.cgi?cmd=servererror +#ErrorDocument 506 ./nph-index.cgi?cmd=servererror +#ErrorDocument 507 ./nph-index.cgi?cmd=servererror +#ErrorDocument 508 ./nph-index.cgi?cmd=servererror +#ErrorDocument 509 ./nph-index.cgi?cmd=servererror +#ErrorDocument 510 ./nph-index.cgi?cmd=servererror