[sourcecode language="plain"]server
{
listen 80;
server_name wzh.kim *.wzh.kim;
return 301 https://$host$request_uri;
access_log /home/wwwlogs/wzh.log;
}[/sourcecode]

欢迎使用WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧!

[code lang="js"]server
{
listen 80 default_server;
server_name _;
return 500;
access_log /home/wwwlogs/access.log;
}

server
{
listen 443 default_server;
server_name _;
ssl on;
ssl_certificate /usr/local/nginx/conf/ssl/wzh.kim/fullchain.cer;
ssl_certificate_key /usr/local/nginx/conf/ssl/wzh.kim/wzh.kim.key;
return 500;
access_log /home/wwwlogs/access.log;
}[/code]

Windows Server 2016 创建匿名共享,匿名访问设置:

1.开启guest用户。打开’计算机管理’->’本地用户和组’,启用guest账户。

2.开启guest用户映射。打开’本地安全策略’->’本地策略’->’安全选项’,找到’网络访问: 将Everyone权限用于匿名用户’设置为启用

3.更新组策略。以管理员身份运行cmd,执行”gpupdate /force”

4.选择要共享的文件夹,在安全里面加上everyone的权限,同时共享权限选择everyone.

@echo off set str1=ABCDEFGHIJKLMNOPQRSTUVWXYZ\: set str2=abcdefghijklmnopqrstuvwxyz/ set str=%~dp0 for /l %%i in (0,1,27) do ( call set char1=%%str1:~%%i,1%% call set char2=%%str2:~%%i,1%% call :change ) goto rsync :change call set "str=%%str:%char1%=%char2%%%" goto :eof :rsync set dir = /cygdrive/%str% echo %dir% set rsync_home=./bin cd %rsync_home% rsync -avt --progress --delete --password-file=/cygdrive/%str%rsync.passwd ossfs@hk.wzh.pw::ossfs /cygdrive/%str% pause