À¥È£½ºÆà ¾÷ü·Î ÀÌ»ç¿Â ¹Ù¶÷¿¡ ¼¹ö Á¤º¸¸¦ º¸¿©ÁÙ ¼ö°¡ ¾ø±º¿ä..
´ë½Å, ¾Æ·¡ÀÇ ³»¿ëÀº °èÁ¤ »ç¿ëÀÚ ÀÔÀå¿¡¼ ¼³Á¤ÇÑ .htaccsss ÆÄÀÏÀÔ´Ï´Ù.
www.linuxchannel.net
## this file is a .htaccess of www.linuxchannel.net
## <san2(at)linuxchannel.net>
#Options Includes ExecCGI
Options FollowSymLinks +MultiViews -Indexes
#DirectoryIndex index.php index.html index.php3 index.htm index.cgi index.txt
#ReadmeName README.txt
#HeaderName HEADER.txt
#IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t
##LanguagePriority kr en
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch "\.(ph|inc|lib|htx)$">
Order allow,deny
Deny from all
</FilesMatch>
#RemoveHandler .htm .html
AddType Application/x-ogg .ogg .OGG
AddType application/x-httpd-cgi .cgi
#AddType text/x-server-parsed-html .html
AddType application/x-httpd-php .php .php3 .ph .inc .lib .conf .htx .pls .m3u
AddType application/x-httpd-php-source .phps
## *.html *.html force to text/html
## force don't use PHP at *.html *.htm files
##
AddType text/html .html .htm
AddType text/plain .txt .text .rc
## test 2011.02.15
AddType application/force-download .pptx .ppt
BrowserMatchNocase "WebZIP" G_OUT
BrowserMatchNocase "Teleport" G_OUT
BrowserMatchNocase "Wget" G_OUT
#BrowserMatchNocase "ApacheBench" G_OUT
#BrowserMatchNocase "GetRight" G_OUT
BrowserMatchNocase "Namo" G_OUT
Order allow,deny
Allow from all
Deny from env=G_OUT
# don't work
#RedirectMatch ^/linux_(docs|tip)(.*)$ http://www.linuxchannel.net/$1/
Redirect /main.html http://www.linuxchannel.net/
RedirectMatch ^/devel/(README|Readme|readme)(.*)$ http://ftp.linuxchannel.net/devel/README.txt
RedirectMatch ^/devel/(rpmlist|apmsh|sysdump|khttpd|phpinfo)(.*)$ http://ftp.linuxchannel.net/devel/$1/
RedirectMatch ^/book/(.*)$ http://linuxchannel.net/books/$1
RedirectMatch ^/books/(bookfaq|bookmisp)([^/]+)\.(txt|html)$ http://linuxchannel.net/books/$1/$1$2.$3
RedirectMatch ^/(dk|darkeden).*$ http://ftp.linuxchannel.net/dk/
#ErrorDocument 401 /error/?errcode=401
#ErrorDocument 403 /error/?errcode=403
#ErrorDocument 404 /error/?errcode=404
#ErrorDocument 500 /error/?errcode=500
ErrorDocument 401 /error/
ErrorDocument 403 /error/
ErrorDocument 404 /error/
## php configure ####################
##
## http://www.php.net/manual/en/function.ini-set.php
##
## httpd.conf or .htaccess
## On --> 1
## Off --> 0
##
#####################################
## memory_limt
php_value memory_limit 30M
## default 1
php_value allow_url_fopen 1
## default '&', but force '&'
php_value arg_separator.input &
php_value arg_separator.output &
php_value auto_prepend_file /home/linuxchannel2/www/rstime/header.php
php_value auto_append_file /home/linuxchannel2/www/rstime/footer.php
## default on, but force on
php_value allow_call_time_pass_reference 1
## default no value
php_value default_charset euc-kr
## default on
php_value display_errors 1
## default on, but force on (Magic quotes for incoming GET/POST/Cookie data)
php_value magic_quotes_gpc 1
## default off, but force off(do not set on)
php_value magic_quotes_runtime 0
## default .:/usr/local/lib/php
php_value include_path .:/home/linuxchannel2/www
## default off, but force on
php_value cgi.fix_pathinfo 1
## default 30, but force to 60
php_value max_execution_time 60
## default off, but force on (1 MBytes)
php_value output_buffering 1048576
## default 14, but force 14
php_value precision 14
## default on, but force on
php_value register_argc_argv 1
## default on, but force on
php_value register_globals 1
## default on, but force on
php_value short_open_tag 1
## default off
#php_value zlib.output_compression 1
## session ############################
##
## default 1, but force 1
php_value session.use_trans_sid 1
## default off
#php_value session.auto_start 0
## default '/', but force '/'
php_value session.cookie_path /
## default '', but force to ''
#php_value session.cookie_secure ''
## default 'PHPSESSID', but force
#php_value session.name PHP_SID
## default /tmp
#php_value session.save_path /tmp
## default on, but force on
php_value session.use_cookies 1
## PHP/5.4+
## error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
## http://php.net/manual/en/errorfunc.constants.php
##
php_value error_reporting "E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED"
##
## end ###############################
ftp.linuxchannel.net
see http://ftp.linuxchannel.net/ftp.linuxchannel.net-htaccess
|