Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thinkphp+nginx+pathinfo #40

Open
wzhanjun opened this issue May 6, 2020 · 0 comments
Open

thinkphp+nginx+pathinfo #40

wzhanjun opened this issue May 6, 2020 · 0 comments
Labels

Comments

@wzhanjun
Copy link
Owner

wzhanjun commented May 6, 2020

    location / {
        if (!-e $request_filename) {
             rewrite  ^(.*)$  /index.php?s=/$1  last;
             break;
        }
     }

  location ~ .*\.(php|php5)(.*)?$ {
        fastcgi_pass   php-fpm:9000;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
        include        fastcgi_params;
    }

@wzhanjun wzhanjun added the php label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant