{{format('0')}} {{format('6')}} {{format('759')}}

Nginx创建一个网站 [ 技术杂谈 ]

九叶的小窝 文章 正文

As Long As You Love Me.
分享

九叶

{{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;
        }
}
评论 0
0
{{userInfo.data?.nickname}}
{{userInfo.data?.email}}
TOP 2
Minecraft | [1.12.2] 核电工艺模拟器 1.2.25 —— 汉化版

{{nature('2021-12-07 15:29:00')}} {{format('2671')}}人已阅读

TOP 3
SSM搭建Spring单元测试环境

{{nature('2021-01-31 20:01:00')}} {{format('1172')}}人已阅读

TOP 4
dispatcher-servlet.xml文件配置模板

{{nature('2020-12-11 21:17:00')}} {{format('1085')}}人已阅读

TOP 5
Windows平台Nacos启动报错无法创建Bean实例

{{nature('2021-04-22 15:16:00')}} {{format('1057')}}人已阅读

目录

一言

# {{hitokoto.data.from || '来自'}} #
{{hitokoto.data.hitokoto || '内容'}}
作者:{{hitokoto.data.from_who || '作者'}}
自定义UI
配色方案

侧边栏