Nginx Configuration for Chevereto Image Hosting Pseudo-Static Rules
6,288 0
Chevereto is currently one of the most powerful PHP image hosting systems. It can be used to deploy public or private image storage services for multiple users. Chevereto now has a free version, which you can check out here: https://github.com/Chevereto/Chevereto-Free
Chevereto provides pseudo-static rules for Apache environments by default. If your server uses Nginx, you can use the following pseudo-static rules:
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;
}
Comments
(0)No comments yet. Start the conversation.