<./>.dev./hood

location / {

    index index.php;
    root  웹접근 루트 경로;
 
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php last;
    }
}


'Server > Nginx' 카테고리의 다른 글

php codeigniter nginx  (0) 2023.09.17
letsencrypt 보안서버 설치 및 갱신  (0) 2020.07.01
url에서 www를 제거하기 위한 nginx rewrite 설정  (0) 2017.10.23
nginx "An error occurred."  (0) 2016.08.18
nginx 가상호스트 설정  (0) 2015.07.11