Closed cocodrino closed 8 years ago
Try this
domain.ltd, www.domain.ltd {
fastcgi / unix:/var/run/php5-fpm.sock php
rewrite {
if {file} ends_with .php
if {path} not_match ^/index\.php(/|$)
status 404
}
rewrite {
to {path} /index.php?{query}
}
log /var/log/nginx/project_access.log
errors /var/log/nginx/project_error.log
}
Closing unless there's anything else.
Hi guys, first let me know if this is the best place for this kind of questions or must I only open tickets here for caddy isssues and ask this questions in stackoverflow
I´m currently using php silex, which is similar to node express or go gorilla router, basically I define my routes in an index file and this handle my request...
Here is how configure it for nginx, I guess than in caddy would be similar but I´ve had some troubles trying using bo
http://silex.sensiolabs.org/doc/web_servers.html