Why can't I access this list method?
谁在乎昵称呢
谁在乎昵称呢 2017-08-21 16:57:36
0
2
1194

After modifying ACTION_SUFFIX in config.php to Action, the path index.php/Home/Idex/list cannot be passed. Is it related to my environment? I don’t use apache but only use nginx.


谁在乎昵称呢
谁在乎昵称呢

reply all(2)
谁在乎昵称呢
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;
        }
}

Later, I changed the nginx configuration to this, but it is different from the tutorial. The list method is accessed through http://tp5.com/Home/Index/list. .


ringa_lee

Project directory problem, you can adjust it again

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template