1
0

init commit

This commit is contained in:
2021-05-13 11:35:49 +08:00
commit a2db70af8b
18 changed files with 541 additions and 0 deletions

22
conf/nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
server {
listen 80;
server_name yaf.lvh.me;
access_log /var/log/nginx/yafcms.access.log;
error_log /var/log/nginx/yafcms.error.log;
root /var/www/yaf_cms/public;
index index.php;
charset utf-8;
location ~ .*\.php(\/.*)*$ {
include snippets/fastcgi-php.conf;
# 设置监听端口
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
if (!-e $request_filename) {
rewrite ^/(.*) /index.php/$1 last;
}
}