Nginx에서 Chevereto 이미지 호스팅 프로그램의 의사 정적 규칙 구성
6,287 0
Chevereto는 현재 가장 강력한 PHP 이미지 호스팅 시스템으로, 이를 통해 다중 사용자를 위한 공개 또는 비공개 이미지 저장 서비스를 배포할 수 있습니다. 현재 Chevereto에 무료 버전이 출시되었으니, 관심 있는 분들은 https://github.com/Chevereto/Chevereto-Free 를 살펴보세요.
Chevereto는 기본적으로 Apache 환경을 기반으로 한 의사 정적 규칙을 제공합니다. 서버가 Nginx인 경우 아래의 의사 정적 규칙을 사용할 수 있습니다.
Nginx Nginx
location / {
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
try_files $uri $uri/ /api.php;
}
location /admin {
try_files $uri /admin/index.php?$args;
}
댓글
(0)아직 댓글이 없습니다