SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
SetEnvIf Request_URI \.ico image-request
SetEnvIf Request_URI \.js image-request
SetEnvIf Request_URI \.css image-request
SetEnvIf Remote_Addr "::1" image-request
SetEnvIf Remote_Addr "127\.0\.0\.1" image-request
# 그누보드 데이터 경로 php 실행방지
<directory /home/*/www/data>
AllowOverride None
php_admin_flag engine off
php_flag engine off
<FilesMatch "\.(cgi|pl|php|htm|html)$">
Order allow,deny
Deny from all
</FilesMatch>
</Directory>
# 워드프레스 데이터 경로 php 실행방지
<directory /home/*/www/wp-content/uploads>
AllowOverride None
php_admin_flag engine off
php_flag engine off
<FilesMatch "\.(cgi|pl|php|htm|html)$">
Order allow,deny
Deny from all
</FilesMatch>
</Directory>
각 폴더처리는 이렇습니다.
<VirtualHost *:80>
DocumentRoot /home/aaa/www
ServerName aaa.co.kr
ServerAlias www.aaa.co.kr
php_admin_value open_basedir /home/aaa/www:/home/*/tmp
php_admin_value upload_tmp_dir /home/aaa/tmp
ErrorLog ${APACHE_LOG_DIR}/aaa.error.log
CustomLog ${APACHE_LOG_DIR}/aaa.access.log combined env=!image-request
</VirtualHost>
게시글 목록
| 번호 | 제목 |
|---|---|
| 1856 | |
| 1854 | |
| 1853 | |
| 1847 | |
| 1846 | |
| 1837 | |
| 1828 | |
| 1824 | |
| 1819 | |
| 1817 | |
| 1810 | |
| 1805 | |
| 1790 | |
| 1786 | |
| 1783 | |
| 1770 | |
| 1764 | |
| 1763 | |
| 1754 | |
| 1753 | |
| 1746 | |
| 1737 | |
| 1736 | |
| 1734 | |
| 1731 | |
| 1727 | |
| 1721 | |
| 1718 | |
| 1715 | |
| 1708 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기