각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
특정 디렉토리 php 실행하기
첨부파일 https://imweb.eond.com/webtip/408120
# block direct access to templates, XML schemas, config files, dotfiles, environment info, etc.
location ~ ^/modules/editor/(skins|styles)/.+\.html$ {
   # pass
}
location ~ ^/(admin/help|common/manual)/.+\.html$ {
   # pass
}
location ~ ^/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ {
   return 403;
}
location ~ ^/misc/.+\.php$ {
   fastcgi_pass unix:/run/php/pool.eond.sock;
   include snippets/fastcgi-php.conf;
   limit_req zone=antiddos burst=12 nodelay;
}
location ~ ^/files/(attach|config|cache/store)/.+\.php$ {
   return 403;
}
location ~ ^/files/(env|member_extra_info/(new_message_flags|point))/ {
   return 403;
}
location ~ ^/(\.(git|ht|jshint)|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) {
   return 403;
}

# fix incorrect relative URLs (for legacy support)
location ~ ^/(.+)/(addons|common|files|layouts|m\.layouts|modules|widgets|widgetstyles)/(.+) {
   try_files $uri $uri/ /$2/$3;
}

# fix incorrect minified URLs (for legacy support)
location ~ ^/(.+)\.min\.(css|js)$ {
   try_files $uri $uri/ /$1.$2;
}

# rss, blogAPI
rewrite ^/(rss|atom)$ /index.php?module=rss&act=$1 last;
rewrite ^/([a-zA-Z0-9_]+)/(rss|atom|api)$ /index.php?mid=$1&act=$2 last;
rewrite ^/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(rss|atom|api)$ /index.php?vid=$1&mid=$2&act=$3 last;

# trackback
rewrite ^/([0-9]+)/(.+)/trackback$ /index.php?document_srl=$1&key=$2&act=trackback last;
rewrite ^/([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ /index.php?vid=$1&document_srl=$2&key=$3&act=trackback last;

# administrator page
rewrite ^/admin/?$ /index.php?module=admin last;

# document category
rewrite ^/([a-zA-Z0-9_]+)/category/([0-9]+)$ /index.php?mid=$1&category=$2 last;

# document permanent link
rewrite ^/([0-9]+)$ /index.php?document_srl=$1 last;

# mid link
rewrite ^/([a-zA-Z0-9_]+)/?$ /index.php?mid=$1 last;

# mid + document link
rewrite ^/([a-zA-Z0-9_]+)/([0-9]+)$ /index.php?mid=$1&document_srl=$2 last;

# vid + mid link
rewrite ^/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$ /index.php?vid=$1&mid=$2 last;

# vid + mid + document link
rewrite ^/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)$ /index.php?vid=$1&mid=$2&document_srl=$3 last;

# mid + entry title
rewrite ^/([a-zA-Z0-9_]+)/entry/(.+)$ /index.php?mid=$1&entry=$2 last;

# vid + mid + entry title
rewrite ^/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$ /index.php?vid=$1&mid=$2&entry=$3 last;
코멘트 0
접기/펴기 | 댓글 새로고침
 
 
Total 683 articles in 31 / 57 pages
번호 제목 제목 조회 수 날짜날짜
323 [기타] 이클립스 Failed to crate the java machine 해결 방법 질문입니다. [1] 6447 2013/11/11
322 [웹로그] 테터툴즈 및 티스토리 도움말 링크 페이지 6513 2006/05/31
321 [웹로그] 환율, 좀 올라주면 안되겠니? [1] 6527 2007/11/07
320 [웹로그] DB 백업&복원 6533 2010/08/17
319 [기본] 웹페이지 동영상 주소 알아내기 파일 6547 2007/11/25
318 디퓨젼 디더(Diffusion Dither) 사용을 이해하기 6559 2007/11/25
317 [웹로그] Daum 캘린더, 이런 기능 어떨까? [2] 6607 2007/11/20
316 [하드웨어] 고장난 컴퓨터 6625 2007/10/08
315 [하드웨어] 업어온 아버지의 PC 파일 6700 2007/10/07
314 [웹로그] 카스퍼스키 무료로 사용하기 6769 2007/10/23
313 네이버 오픈API 책검색 6784 2007/09/17
312 [웹로그] 내가 사용하는 프로그램 6789 2009/09/11

해시태그 디렉터리

오늘의 핫게시물