아파치에서 주속에 확장자 없이
ex) http://88240.tistory.com/test.php => http://88240.tistory.com/test 로 접속되도록
설정하는 방법은 다음과 같다
httpd.conf 에서
<Directory "/usr/local/apache2/htdocs/"]
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# Options FileInfo AuthConfig Limit
AllowOverride None
#
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</directory>
위와 같이 옵션에 MultiViews를 넣음 됨..
+) Apache 2.2부터는 -MultiViews를 명시해주어도 동작하기때문에 FilesMatch를 통해 다중 확장자 업로드를 막아줘야함
#AddType application/x-httpd-php .php .html
<FilesMatch \.php$>
SetHandler application/x-httpd-php
<FilesMatch>