78 Unstar Star 225 Fork 95

七觞酒 / yiicms

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
nginx.conf 847 Bytes
Copy Edit Web IDE Raw Blame History
七觞酒 authored 2020-02-05 10:49 . fix bug
server {
listen 80;
server_name dev.yiicms.com;
index index.php;
root /var/www/yiicms/web;
error_page 404 = /404.html;
location ~ \.php
{
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME
$document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
location / {
if (!-f $request_filename){
rewrite ^.*$ /index.php last;
}
}
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/templi/yiicms.git
git@git.oschina.net:templi/yiicms.git
templi
yiicms
yiicms
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542