RadarURL
Skip to content
조회 수 65992 추천 수 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

?

  1. NGXMP 16.0 버전에서 Log에 upstream timed out (10060: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다) while connecting to upstream, upstream: "fastcgi://127.0.0.1:9000"

    Date2014.04.11 ByJaeSoo Views2037
    Read More
  2. 504 Gateway Time-out using Nginx

    Date2014.04.09 ByJaeSoo Views1745
    Read More
  3. Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등)

    Date2014.04.09 ByJaeSoo Views2234
    Read More
  4. Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream

    Date2014.04.08 ByJaeSoo Views1511
    Read More
  5. nginx 504 gateway time-out

    Date2014.04.08 ByJaeSoo Views1555
    Read More
  6. Nginx SERverSETting

    Date2014.04.07 ByJaeSoo Views1624
    Read More
  7. Nginx에서 php 외에 추가로 여러 확장자를 처리 방법

    Date2013.06.10 ByJAESOO Views2917
    Read More
  8. Nginx 설치 (간략)

    Date2013.06.10 ByJAESOO Views1709
    Read More
  9. Apache vs Nginx 성능을 밝혀라!

    Date2013.05.28 ByJAESOO Views3653
    Read More
  10. 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가?

    Date2013.05.28 ByJAESOO Views2815
    Read More
  11. nginx 재시작 배치파일

    Date2013.04.12 ByJaeSoo Views3227
    Read More
  12. NGINX서버를 통한 다운로드 링크 형성하기(POGOPLUG SERIES 4용)

    Date2013.04.08 ByJaeSoo Views5315
    Read More
  13. nginx 에서 htaccess 사용하기

    Date2013.04.08 ByJaeSoo Views2889
    Read More
  14. Nginx HttpRewriteModule

    Date2013.04.08 ByJaeSoo Views2807
    Read More
  15. Nginx 와 Apache 동시사용 설정 (영문)

    Date2013.04.08 ByJaeSoo Views8882
    Read More
  16. Xpress engine nginx rewrite 설정, 짧은주소 (xpressengine)

    Date2012.11.20 ByJaeSoo Views65992
    Read More
  17. NGINX 소개와 사용 현황

    Date2012.11.20 ByJaeSoo Views4836
    Read More
  18. 강력한 웹서버 NGINX

    Date2012.11.20 ByJaeSoo Views5086
    Read More
  19. Nginx 웹서버 성능분석

    Date2012.11.20 ByJaeSoo Views5747
    Read More
  20. 제로보드XE(Xpressengine) Anti-accessXE:기본설정

    Date2012.07.26 ByJaeSoo Views3938
    Read More
Board Pagination Prev 1 2 Next
/ 2

PageViews   Today : 6270 Yesterday : 5037 Total : 21962322  /  Counter Status   Today : 6063 Yesterday : 4602 Total : 1188786

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소