php CodeIgniter framework 在 nginx上要開啟 必須注意 php-cgi設定
location ~ \.php$ { fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; include fastcgi.conf; }
關鍵設定在這句 如未設定 會導致urls異常 造成拒絕訪問 or 404 error
fastcgi_split_path_info ^(.+\.php)(.*)$;