Nginx创建一个网站 [ 技术杂谈 ]
九叶的小窝 文章 正文
九叶
{{nature("2021-05-25 16:31:25")}}更新在vhosts文件夹内创建 recovery.qwq.ro.conf 文件
server {
listen 80;
server_name recovery.qwq.ro;
index index.php index.html index.htm default.php default.htm default.html;
root /var/www/recovery;
#access_log /www/access_ example1.log main;
location / {
index index.php index.html index.htm;
#autoindex on;#如果文件不存在列出目录结构;
}
#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
location ~ /\.ht {
deny all;
}
}
{{nature('2021-12-07 15:29:00')}} {{format('2878')}}人已阅读
{{nature('2021-01-31 20:01:00')}} {{format('1231')}}人已阅读
{{nature('2020-12-11 21:17:00')}} {{format('1158')}}人已阅读
{{nature('2021-04-22 15:16:00')}} {{format('1112')}}人已阅读
目录
一言
评论 0
{{userInfo.data?.nickname}}
{{userInfo.data?.email}}