Everytime I try diagnosing a problem by regenerating the websites under tools; I have go to the website cofnig file and add these lines to make my moodle site work. Code: location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; fastcgi_pass 127.0.0.1:9085; # fastcgi_pass unix:/var/lib/php5-fpm/web98.sock; include fastcgi_params; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } Is there is anything I can do to avoid that?