惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - puexine

解除一些网站利用【user-select: none;】禁止复制的限制! 使用 inline-block 水平垂直居中任意内容 Download VMware Workstation Pro css3 box-sizing属性 Google Chrome离线安装包下载 谷歌浏览器下载 Windows Defender Manually download the latest updates 纯CSS实现:垂直居中,未知宽高,已知宽高,IE5除外所有浏览器均兼容 常用公共DNS服务器地址 用户中心 - 博客园 VMWare CentOS 6.5 安装vmware-tools 彻底删除卸载Windows XP自带的Windows Message Windows Media Player Firefox Plugin支持Windows Server 2003的方法 微软软件运行库整理下载 – .NET Framework、VC++库、DirectX等 PIN码PJ教程,reaver 使用方法和技巧 Reaver基本命令参数详解及应用 另辟蹊径,CSS设置垂直居中 css实现固定高度及未知高度文字垂直居中的完美解决方案 显示器驱动程序已停止响应 并且已成功恢复 来自星星的你
[nginx环境]Typecho安装在根目录与子目录的伪静态规则
puexine · 2016-05-18 · via 博客园 - puexine

安装在根目录下:

 1 location / {
 2     index index.html index.php;
 3     if (-f $request_filename/index.html){
 4         rewrite (.*) $1/index.html break;
 5     }
 6     if (-f $request_filename/index.php){
 7         rewrite (.*) $1/index.php;
 8     }
 9     if (!-f $request_filename){
10         rewrite (.*) /index.php;
11     }
12 }

安装在子目录下:

 1 location /subfolder/ {
 2     if (-f $request_filename/index.html){
 3         rewrite (.*) $1/index.html break;
 4     }
 5     if (-f $request_filename/index.php){
 6         rewrite (.*) $1/index.php last;
 7     }
 8     if (!-f $request_filename){
 9         rewrite (.*) /subfolder/index.php last;
10     }
11 }

posted @ 2016-05-18 14:45  puexine  阅读(1753)  评论()    收藏  举报