YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容！ - Apache
Typecho文章链接打不开，Typecho文章静态规则的问题
Typecho文章链接打不开，Typecho文章静态规则的问题注意：千万别忘了在Typecho设置中的永久链接中， 选择启用地址重写！！Typecho Apache 伪静态规则<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] Typecho Nginx 伪静态规则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; } }
Typecho-Apache服务器防止图片盗链的方法，Typecho防止图片被盗链的方法，.htaccess文件设置防止图片被盗链
Typecho-Apache服务器防止图片盗链的方法，Typecho防止图片被盗链的方法，.htaccess文件设置防止图片被盗链今天无意中发现网站被内容被直接复制过去拿去用了，图片链接也不修改下，注明转载能怎么滴，你就不能找一个好点的盗？RewriteEngine On RewriteBase /usr/uploads/ RewriteCond %{HTTP_REFERER} !^$ [NC] RewriteCond %{HTTP_REFERER} !yiem.net [NC] RewriteCond %{HTTP_REFERER} !google.com [NC] RewriteCond %{HTTP_REFERER} !baidu.com [NC] RewriteCond %{HTTP_REFERER} !sogou.com [NC] RewriteRule .*\.(gif|jpg|png)$ https://www.yiem.net/logo_2018_2.png [R,NC,L]
宝塔面板启动Nginx-出现Address already in use,宝塔面板启动Nginx-出现80短裤被占用问题
宝塔面板启动Nginx-出现Address already in use,宝塔面板启动Nginx-出现80短裤被占用问题2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2018/10/03 10:27:22 [emerg] 345#0: still could not bind()原因是你使用的Linux环境中默认有Apache，而在服务器重启中会去占用80端口，所以需要关闭Apache，可以搜索你的Linux版本+Apache Stop 命令：比如Debian：/etc/init.d/apache2 stop 如果你不想再出现这种问题，可以将Apache卸载，或者可以选择没有Apache版本的Linux