제가쓰는 아파치설정입니다.
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개
게시판 목록
서버관리자
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 354 | 6년 전 | 1602 | ||
| 353 | 6년 전 | 1898 | ||
| 352 | 6년 전 | 1123 | ||
| 351 | 6년 전 | 1438 | ||
| 350 | 6년 전 | 1769 | ||
| 349 | 6년 전 | 1807 | ||
| 348 |
sk20031
|
6년 전 | 1464 | |
| 347 |
짱구짱아아빠
|
6년 전 | 1645 | |
| 346 | 6년 전 | 2438 | ||
| 345 |
|
6년 전 | 2660 | |
| 344 |
|
6년 전 | 1408 | |
| 343 |
|
7년 전 | 1704 | |
| 342 | 7년 전 | 2771 | ||
| 341 | 7년 전 | 1701 | ||
| 340 |
짱구짱아아빠
|
7년 전 | 1364 | |
| 339 | 7년 전 | 1606 | ||
| 338 |
|
7년 전 | 1671 | |
| 337 | 7년 전 | 1907 | ||
| 336 | 7년 전 | 1684 | ||
| 335 |
|
7년 전 | 1365 | |
| 334 | 7년 전 | 1339 | ||
| 333 | 7년 전 | 1806 | ||
| 332 | 7년 전 | 2251 | ||
| 331 | 7년 전 | 1706 | ||
| 330 | 7년 전 | 1702 | ||
| 329 | 7년 전 | 2758 | ||
| 328 |
프로그래머7
|
7년 전 | 3980 | |
| 327 | 7년 전 | 2218 | ||
| 326 | 7년 전 | 1975 | ||
| 325 | 7년 전 | 1990 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기