PyukiWiki CVS Commit
pyuki****@lists*****
2012年 4月 8日 (日) 23:59:16 JST
Index: PyukiWiki-Devel/.htaccess diff -u PyukiWiki-Devel/.htaccess:1.407 PyukiWiki-Devel/.htaccess:1.408 --- PyukiWiki-Devel/.htaccess:1.407 Sun Apr 8 16:59:08 2012 +++ PyukiWiki-Devel/.htaccess Sun Apr 8 23:59:16 2012 @@ -1,110 +1,15 @@ ###################################################################### -# Apache .htaccess for PyukiWiki -# $Id: .htaccess,v 1.407 2012/04/08 07:59:08 papu Exp $ +# Apache attach/.htaccess for PyukiWiki for attach/ +# $Id: .htaccess,v 1.408 2012/04/08 14:59:16 papu Exp $ # "PyukiWiki" ver 0.2.0-p3-dev4 $$ ###################################################################### -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> +## sample prevention of direct link from other site +#SetEnvIf Referer "^http://pyukiwiki.sourceforge.jp/" ref01 +#Order deny,allow +#Deny from all +#Allow from env=ref01 -<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