생존기술_IT/OS | SERVER

[apache] 아파치 확장자없이도 접속 가능하게..

LeCafeCreme 2020. 6. 22. 14:25

/etc/apache2/apache2.conf

 

Options FollowSymLinks MultiViews

or

Options Indexes FollowSymLinks MultiViews
AddType application/x-httpd-php .php .jsp

 

+) Apache 2.2부터는 -MultiViews를 명시해주어도 동작하기때문에 FilesMatch를 통해 다중 확장자 업로드를 막아줘야함

#AddType application/x-httpd-php .php .html

<FilesMatch \.php$>

   SetHandler application/x-httpd-php

<FilesMatch>

 

출처: https://88240.tistory.com/327 [shaking blog]

출처: https://jmoon.co.kr/107