Home  >  Article  >  php教程  >  thinkphp configuration under nginx, with differences between win and linux

thinkphp configuration under nginx, with differences between win and linux

WBOY
WBOYOriginal
2016-07-06 13:29:20916browse

,
thinkphp configuration under nginx, with differences between win and linux
thinkphp configuration under nginx, with differences between win and linux

apache php5.4 under win

nginx1.10 php7.0 under ubuntu

Also send a configuration for nginx to support TP try_files $uri $uri/ @rewrite; <code class="prettyprint linenums lang-php">try_files $uri $uri/ @rewrite;  <br> location @rewrite {<br>     rewrite ^/index.php/(.*)$ /index.php?s=/; <br>     rewrite ^/(.*)$ /index.php?s=/; <br> } location @rewrite {

Rewrite ^/index.php/(.*)$ /index.php?s=/$1;

Rewrite ^/(.*)$ /index.php?s=/$1;

} Yunqi Conference Beijing Station: It’s rare for Alibaba technical experts to appear on the scene. More than 100 people came this time? !
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:MYSQL slow query analysisNext article:MYSQL slow query analysis