在nginx服务器设置wordpress伪静态

刚刚打开博客文章突然就404了,吓我一大跳。最后上网查询了一下资料发现是伪静态设置的问题。因为使用的是nginx的系统,所以不能设置.htaccess文件,而需要通过设置conf文件来实现伪静态,以下为综合网上资料,实验有效的方法。

打开nginx配置文件nginx.conf,在location段添加下面这一行代码:

location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename)
{
rewrite (.*) /index.php;
}
}

继续阅读

在linux上利用wget下载冷门文件

经常有的时候我们需要从国外的网站上下载一些比较大个的文件,速度就成了让人很头疼的问题。开着电脑彻夜下载,既不环保也不科学。现在有种叫离线下载的东西灰常好用,但是对于国外的某些资源,速度也相当堪忧,所以我们可以先利用国外的vps或主机,用wget工具下载到服务器上再用迅雷的离线转存回来即可,下面就简单的介绍一下。

wget的的详细介绍及说明请见wiki

一般的文件直接用wget "文件url" 的格式就可以下载,针对有cookie限制的网站,可以使用下列命令:

wget --load-cookies cookies.txtURL” -Ofilename

其中cookies.txt是网站的cookies文件,可用Export Cookies这个插件。URL是文件的下载地址。后面空格加上文件的重命名,这样就可以快速下载国外冷门文件了。

 

Signing iOS mobileconfig files with your certificate

If you’ve ever used Apple’s iPhone Configuration Utility, you’ve probably noticed that it says ‘Unsigned’ when you send the .mobileconfig file to your device. To sign the profile, export or email the config file to yourself, have your certificate files handy, and type the following:

openssl smime \
-sign \
-signer your-cert.pem \
-inkey your-priv-key.pem \
-certfile TheCertChain.pem \
-nodetach \
-outform der \
-in ConfigProfile.mobileconfig \
-out ConfigProfile_signed.mobileconfig

The files you’ll need are:

your-cert.pem – this is the certificate you’ve been issued
your-priv-key.pem – this is your private key
TheCertChain.pem – this is the certificate chain (optional, in some cases)
ConfigProfile.mobileconfig – This is the unsigned copy of your configuration profile

The original instructions are located here.

riddle

1:点击Don't install.

2:Ctrl+A ,你看见了什么?

3:查看图片的地址然后打开,知道是?

4:打开源文件。

5:这个是字母表密码。

6:goole一下无限弹珠的游戏秘籍

7:与Windows齐名的另一款系统软件 企鹅系统?

8:(元素周期表)先翻译成数字,再翻译成字母。

9:看见图上的字母了吗?我一直以为是loves

10:源文件老规矩看title  “Diagonal”

11:泰坦尼克号:不沉的船还是沉了

12:百度一下你就知道(1874)

13:看见源文件中有一个Pets Not Giant.取首字母得PNG,拷贝老虎图片地址,将后缀名改成png便知秘密

14:直接算出来吧(534202)

15:直接算出来吧(13942)

16:数字人生(43140624)

继续阅读