각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
특정 디렉토리 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 30 / 57 pages
번호 제목 제목 조회 수 날짜날짜
335 [하드웨어] 잉크 토너 구매 9524 2010/03/08
334 [생활] 원룸 알아볼 때 유의사항 10679 2010/03/09
333 [브라우저] 인터넷 익스플로러 8에서 탭 빨리 열기 12467 2010/03/17
332 [기본] 메일 사이트별 일반파일 첨부용량 가능사이즈 9663 2010/05/02
331 [기본] USB 보안 프로그램 10928 2010/05/02
330 [기본] USB 보안 관련 8264 2010/05/14
329 [기본] 작업관리자 10382 2010/05/20
328 [윈도우] USB_MultiBoot [1] 12969 2010/05/23
327 [기본] RISS 원노트로 인쇄하기 11961 2010/05/26
326 [기본] Aspire 5572ANWXCi 설치 드라이버 10756 2010/06/03
325 [윈도우] 도스에서 드라이버 레터 고정하기 [1] 11507 2010/07/12
324 [기본] HDMI 케이블 고르기 파일 [1] 10282 2010/07/14

해시태그 디렉터리

오늘의 핫게시물