각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
특정 디렉토리 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 21 / 57 pages
번호 제목 제목 조회 수 날짜날짜
443 원격컴퓨터소리 5251 2008/08/21
442 Microsoftp RDP Audio Driver [1] 5781 2008/08/21
441 xp 공유 안될 때 [1] 5758 2008/08/27
440 사운드카드 확인 파일 [2] 8564 2008/08/28
439 C-Media CMI8738/C3DX PCI Audio Device v5.12.1.646 Driver 파일 [1] 9478 2008/08/28
438 [윈도우] 윈도우 복구 콘솔세상풍경 10401 2008/08/30
437 [윈도우] 윈도우 복구 콘솔 명령어 리스트 13915 2008/08/30
436 메인보드 전원 케이블 연결 5979 2008/08/30
435 [윈도우] 복구콘솔 사용법 10008 2008/08/30
434 [윈도우] 복구 콘솔을 하드에 설치하는 방법 11079 2008/08/30
433 부팅 시 ntoskrnl.exe 에러 메시지가 발생을 했을 때 해결 방안 8034 2008/08/30
432 REMOTE VIEWER 3898 2008/08/30

해시태그 디렉터리

오늘의 핫게시물