diff --git a/conf/nginx.conf b/conf/nginx.conf index 803cdf3..41d08ed 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,27 +1,20 @@ location __PATHTOCHANGE__ { alias __FINALPATH__/; - index index.php; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - client_max_body_size 30m; - location ~* \.(jpg|jpeg|gif|css|png|js|ico|swf|mp3|pdf)$ { - # Le contenu statique, est signalé au navigateur comme étant - # à garder en cache une semaine. Si il y a un proxy sur la - # route, celui-ci est autorisé à faire une copie et à la - # cacher. - expires 1w; - add_header Cache-Control public; - } + index index.php; + try_files $uri $uri/ index.php; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm-__NAMETOCHANGE__.sock; fastcgi_index index.php; include fastcgi_params; - fastcgi_param REMOTE_USER $remote_user; - fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; }