init commit
This commit is contained in:
22
conf/nginx.conf
Normal file
22
conf/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user