- 2017.06.24
- 조회수 476
- 댓글수 1
사진에 보이는 test 게시글을 클릭 하였을 때,
실제 게시글의 주소는 http://192.168.1.91/xe3/board1/show/977742e8-577c-4312-bd6a-9259a8d75cc6 이나,
클릭 시 http://192.168.1.91/board1/show/977742e8-577c-4312-bd6a-9259a8d75cc6로 이동이 됩니다.
이전 xe처럼 config 파일에서 사이트의 기본 주소를 바꾸어주면 될 거 같은데, 파일을 찾을 수 없습니다.
혹시 XE3에서는 직접적인 수정이 불가능한건지 궁금하며, rewrite로 해결을 할 수 있는지 궁금합니다.
환경은 nginx에 설정된 루트에 xe3이름의 하위 디렉토리를 만들어 설치한 상태이며, 아래는 수정하여 적용한 rewrite 입니다.
####### XE3 rewrite ######
location /xe3/ {
try_files $uri $uri/ /xe3/index.php?$args;
rewrite ^.* /xe3/index.php;
}
location ~ /\. {
deny all;
}
location ^~ /xe3/assets/ {
try_files $uri /xe3/index.php?$args;
}
location ^~ /xe3/plugins/ {
try_files $uri /xe3/index.php?$args;
}
location ^~ /xe3/storage/app/public/ {
try_files $uri /xe3/index.php?$args;
}
location ~ ^/xe3/favicon* {
try_files $uri /xe3/index.php?$args;
}
location /xe3/robots.txt {
try_files $uri /xe3/index.php?$args;
}
location ~ \.php$ {
rewrite ^.* /index.php;
}
#####################################
0개 댓글