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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 1703 | |
| 1697 | |
| 1688 | |
| 1676 | |
| 1664 | |
| 1660 | |
| 1657 | |
| 1655 | |
| 1646 | |
| 1633 | |
| 1622 | |
| 1615 | |
| 1610 | |
| 1597 | |
| 1596 | |
| 1576 | |
| 1569 | |
| 1558 | |
| 1554 | |
| 1539 | |
| 1532 | |
| 1522 | |
| 1513 | |
| 1512 | |
| 1500 | |
| 1490 | |
| 1489 | |
| 1488 | |
| 1485 | |
| 1482 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기