|
@@ -56,7 +56,16 @@ http {
|
|
|
alias /var/www/shaarli/images/favicon.ico;
|
|
|
}
|
|
|
|
|
|
+ location / {
|
|
|
+ # Slim - rewrite URLs
|
|
|
+ try_files $uri /index.php$is_args$args;
|
|
|
+ }
|
|
|
+
|
|
|
location ~ (index)\.php$ {
|
|
|
+ # Slim - split URL path into (script_filename, path_info)
|
|
|
+ try_files $uri =404;
|
|
|
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
+
|
|
|
# filter and proxy PHP requests to PHP-FPM
|
|
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
|
fastcgi_index index.php;
|