우분투 영카트 설치완료 했는데
관련링크
본문
http://letshug.co.kr/shop/index.php
http://letshug.co.kr//index.php
http://letshug.co.kr/adm/index.php
이케 꼭 index.php 를 써야 나오는데 ㅠㅠ
우분투 설정쪽에 문제 인거 같다고
서버엔지니어님이 확인 더 해보신다고 하는 데 제가 고칠수 있거나 확인해봐야 하는 부분 있는지 해서요~~
고수님들 도움좀 부탁드립니다.
답변 3
웹서버 nginx 서버 설정의 인덱스 파일 리스트에 추가해 주어야 됩니다. (설정파일 변경 후 재시작 필요)
Ex)
server {
~
index index.html index.htm;
~
}
->
server {
~
index index.php index.html index.htm;
~
}
암튼 해보고 되면 ㅎㅎ 다시 올릴께용
관리자에 이런게 있네용
#### 그누보드5 nginx rules BEGIN #####
if (!-e $request_filename){
rewrite ^/shop/list-([0-9a-z]+)$ /shop/list.php?ca_id=$1&rewrite=1 break;
rewrite ^/shop/type-([0-9a-z]+)$ /shop/listtype.php?type=$1&rewrite=1 break;
rewrite ^/shop/([0-9a-zA-Z_]+)$ /shop/item.php?it_id=$1&rewrite=1 break;
rewrite ^/shop/([^/]+)/$ /shop/item.php?it_seo_title=$1&rewrite=1 break;
rewrite ^/content/([0-9a-zA-Z_]+)$ /bbs/content.php?co_id=$1&rewrite=1 break;
rewrite ^/content/([^/]+)/$ /bbs/content.php?co_seo_title=$1&rewrite=1 break;
rewrite ^/rss/([0-9a-zA-Z_]+)$ /bbs/rss.php?bo_table=$1 break;
rewrite ^/([0-9a-zA-Z_]+)$ /bbs/board.php?bo_table=$1&rewrite=1 break;
rewrite ^/([0-9a-zA-Z_]+)/write$ /bbs/write.php?bo_table=$1&rewrite=1 break;
rewrite ^/([0-9a-zA-Z_]+)/([^/]+)/$ /bbs/board.php?bo_table=$1&wr_seo_title=$2&rewrite=1 break;
rewrite ^/([0-9a-zA-Z_]+)/([0-9]+)$ /bbs/board.php?bo_table=$1&wr_id=$2&rewrite=1 break;
}
#### 그누보드5 nginx rules END #####
# location ~ \.php$ {
# include /etc/nginx/snippets/fastcgi-php.conf;
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;
# }
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name
;
include fastcgi_params;
이케 바꾸고 해결완료 되었다는 ~~ 혼자질문하고 혼자 해결하고!! 다들 우분투에서 하실때 참고 되셨으면좋겠습니당.