제가쓰는 아파치설정입니다.
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>
댓글 1개
게시판 목록
서버관리자
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 594 | 4년 전 | 1603 | ||
| 593 | 4년 전 | 1747 | ||
| 592 | 4년 전 | 4397 | ||
| 591 |
|
4년 전 | 1766 | |
| 590 | 4년 전 | 1478 | ||
| 589 | 4년 전 | 1765 | ||
| 588 | 5년 전 | 1478 | ||
| 587 | 5년 전 | 1568 | ||
| 586 | 5년 전 | 1772 | ||
| 585 | 5년 전 | 1450 | ||
| 584 |
loderunner
|
5년 전 | 2181 | |
| 583 | 5년 전 | 1465 | ||
| 582 | 5년 전 | 1876 | ||
| 581 | 5년 전 | 2102 | ||
| 580 | 5년 전 | 2437 | ||
| 579 |
|
5년 전 | 1748 | |
| 578 | 5년 전 | 1405 | ||
| 577 | 5년 전 | 1417 | ||
| 576 | 5년 전 | 1268 | ||
| 575 | 5년 전 | 1266 | ||
| 574 | 5년 전 | 1143 | ||
| 573 | 5년 전 | 1456 | ||
| 572 | 5년 전 | 1058 | ||
| 571 | 5년 전 | 1523 | ||
| 570 | 5년 전 | 1189 | ||
| 569 | 5년 전 | 1208 | ||
| 568 |
JeongYunSeong
|
5년 전 | 1323 | |
| 567 | 5년 전 | 4134 | ||
| 566 | 5년 전 | 1464 | ||
| 565 | 5년 전 | 2456 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기