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

thinkphp configuration under nginx, with differences between win and linux

WBOY
Release: 2016-07-06 13:29:20
Original
945 people have browsed it

,
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? !
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template