가상 서버에 nginx 설치해서 어찌어찌 사용하고 있었는데 xe용 rewrite 적용하려해도 도통 되질 않네요.
XE는 관리자 설정 고급에서 짧은 주소 사용하기 선택하였고요.(지금은 일단 미적용으로 했습니다.)
설정은 아래의 설명을 참고했습니다.
https://github.com/xpressengine/xe-core/wiki/Nginx-rewite-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0
제 서버는 centos 7이고요. nginx는 아래의 폴더로 되어있습니다.
/etc/nginx/nginx.conf
/etc/nginx/xe_rewrite.conf <- 위 주소의 내용을 만듬
/etc/nginx/conf.d/romanesque.me.conf
server {
listen 80;
server_name *.romanesque.me;
client_max_body_size 1000m;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /usr/share/nginx/html/www;
index index.php index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html/www;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /usr/share/nginx/html/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
include xe_rewrite.conf;
}
참고로 include /etc/nginx/xe_rewrite.conf로 하거나 location 사이사이에 넣어보거나 location / {} 안에 넣어보거나 해도 도통 아래의 메시지만 뿝습니다.
404 Not Found
혹시 nginx 재시작해보셨는지요?