/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]
'생존기술_IT > OS | SERVER' 카테고리의 다른 글
[Linux/Vim] Vim 사용법 - 복붙 (0) | 2020.06.22 |
---|---|
[php] 소스 안에 <?php 없애기.. (0) | 2020.06.22 |
[apache/php] PHP / Ubuntu / Apache / HTML 확장자에도 PHP 코드 인식되도록 설정하는 방법 (0) | 2020.06.22 |
[Linux/CentOS] 리눅스 디렉토리 구조 / 리눅스 종류.. (0) | 2020.06.22 |
[Linux/CentOS6/IPTABLES] CentOS 6.x - IPTABLES - 방화벽설정 - 처음부터 다 밀고 다시 셋팅하기.. (0) | 2020.06.22 |