RadarURL

조회 수 18607 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

와 별거아니었는데 찾아보다 .. 드디어 됐다.
설정방법
먼저   xe.conf
다운받아 nginx가 설치된 경로에 업로드한다.
나는 /etc/nginx/sites-available/에 올림
 
$cd /etc/nginx/sites-available/

$vi default
 
하고,
 

server {
        root /usr/share/nginx/www/;
        index index.php index.html index.htm;

        server_name jasontody.com;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to index.html
                try_files $uri $uri/ /index.html;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
        }
        include /etc/nginx/sites-available/xe.conf;
 
이렇게 하고  nginx restart 시켜주면 끝.
 
$sudo /etc/init.d/nginx restart
 
ftp로 업로드 안하고 직접 xe.conf 작성해도 됨
 
 if ($request_uri ~* /phpmyadmin) {
break;
}
# reserve XE Layout Template Source File (*.html)
rewrite ^/(layouts|m.layouts)/(.+)/(.+)\.html$ /index.php last;
# conf, query, schema
rewrite ^/(modules|addons|widgets)/(.+)/(conf|queries|schemas)/(.+)\.xml$ /index.php last;
# static files
if (!-f $request_filename) {
rewrite ^/(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*) /files/$2/$3 last;
}
if (!-f $request_filename) {
rewrite ^/(.+)/(files|modules|common|widgets|widgetstyles|layouts|m.layouts|addons)/(.*) /$2/$3 last;
}
# 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 permanent link
rewrite ^/([0-9]+)$ /index.php?document_srl=$1 last;
# mid link
if (!-d $request_filename) {
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
if (!-d $request_filename) {
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;
 
코드출처 : http://dev.naver.com/projects/ngxmp/

 

xpressengine Admin에서 이것까지 체크해주면 끝

nginx_rw.png  
 
출처 : http://tistory.jasontody.com/52

?

공부 게시판

공부에 도움되는 글을 올려주세요.

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 [공지] 공부 게시판 입니다. 처누 2003.08.18 931246
2503 연애 폭소클럽 제36회 - 즉석미팅 1 (김제동) file JaeSoo 2003.08.18 19016
2502 연애 폭소클럽 제37회 - 즉석미팅 2 (김제동) file JaeSoo 2003.08.18 17842
2501 연애 폭소클럽 제38회 - 방학특집 연애특강 1 (김제동) 1 file JaeSoo 2003.08.18 16392
2500 연애 폭소클럽 제39회 - 방학특집 연애특강 2 (김제동) file JaeSoo 2003.08.18 17858
2499 연애 폭소클럽 제40회 - 방학특집 연애특강 3 (김제동) file JaeSoo 2003.08.18 16866
2498 웹 프로그래밍 이미지 특정 부분에 링크 만들기 처누 2003.08.24 15649
2497 웹 프로그래밍 게시판에 자신의 FTP 자료 올리기 3 처누 2003.08.25 13160
2496 동식물 고양이 클리닉 - 고양이 기르기 file JaeSoo 2003.10.10 13727
2495 동식물 고양이 클리닉 - 고양이 품종 file JaeSoo 2003.10.10 13458
2494 동식물 고양이 클리닉 - 2개월에서 4개월령 고양이 관리 file JaeSoo 2003.10.11 13453
2493 동식물 고양이 클리닉 - 4개월에서 9개월령 고양이 관리 file JaeSoo 2003.10.11 13167
2492 동식물 고양이 클리닉 - 다자란 고양이 file JaeSoo 2003.10.13 13957
2491 동식물 고양이 클리닉 - 나이든 고양이 file JaeSoo 2003.10.13 13711
2490 동식물 고양이 클리닉 - 고양이의 영양 file JaeSoo 2003.10.13 13456
2489 동식물 고양이 먹이와 주의사항 file JaeSoo 2003.10.13 13934
2488 동식물 아기 고양이의 식사 file JaeSoo 2003.10.13 11845
2487 동식물 고양이 사료 급여량 file JaeSoo 2003.10.13 12911
2486 기타 편지봉투 쓰는 법 file JaeSoo 2003.10.21 17017
2485 웹 프로그래밍 제로보드 로그인 실패시 이유를 메세지로 알려주기 처누 2003.11.04 8478
2484 웹 프로그래밍 최근 게시물 출력시 링크게시물에 스타일시트 적용하기 처누 2003.11.06 7956
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 126 Next
/ 126


즐겨찾기 (가족)

JAESOO's HOMEPAGE


YOUNGAE's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너