Rumah > Soal Jawab > teks badan
Selepas mengubah suai ACTION_SUFFIX dalam config.php kepada Tindakan, laluan index.php/Home/Idex/list tidak boleh dilalui Adakah ia berkaitan dengan persekitaran saya?
谁在乎昵称呢2017-08-21 18:10:13
server { listen 80; charset utf-8; root D:/data/tp3/; index index.php index.html index.htm; server_name tp5.com; location / { try_files $uri $uri/ /index.php; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s= last; break; } } location ~ \.php$ { include fastcgi_params; fastcgi_pass php_processes; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
Kemudian, saya menukar konfigurasi nginx kepada ini, tetapi ia berbeza daripada tutorial Kaedah senarai diakses melalui http://tp5.com/Home/Index/list. .