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

推荐订阅源

S
Secure Thoughts
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Securelist
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
K
Kaspersky official blog
WordPress大学
WordPress大学
I
Intezer
L
Lohrmann on Cybersecurity
V
Vulnerabilities – Threatpost
C
Check Point Blog
A
About on SuperTechFans
AWS News Blog
AWS News Blog
Latest news
Latest news
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cyber Attacks, Cyber Crime and Cyber Security
SecWiki News
SecWiki News
Recorded Future
Recorded Future
Last Week in AI
Last Week in AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Register - Security
The Register - Security
A
Arctic Wolf
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
V
V2EX
Scott Helme
Scott Helme
I
InfoQ
Project Zero
Project Zero
Security Archives - TechRepublic
Security Archives - TechRepublic
Recent Announcements
Recent Announcements
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
Webroot Blog
Webroot Blog
N
News and Events Feed by Topic
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
NISL@THU
NISL@THU
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Rat's Blog - 短地址

Lstu:一款简单、美观的轻量级网址缩短程序 - Rat's Blog 短网址程序YOURLS安装及配置教程与设置中文 - Rat's Blog Bitly:一个可以还原短网址链接的网站 - Rat's Blog Myurl:一个简洁开源的短网址程序 - Rat's Blog
CRZ.im:一个十分简洁的网址缩短服务,带源码安装教程 - Rat's Blog
博主: Rat's · 2018-05-01 · via Rat's Blog - 短地址

简介

CRZ.im是一个网址缩短服务的网站,所用的源码基于PHPSQLite进行开发,总大小仅10K左右,十分轻巧。

演示地址:https://crz.im/

截图

请输入图片描述

安装

搭建好Web环境,可以使用宝塔面板,或者LNMP一键包,只需要安装NginxPHP即可。

然后解析好域名,上传程序源码到网站根目录,源码下载:Github本地下载

接下来设置Nginx伪静态,在网站配置文件中添加以下代码:

#root后面为网站根目录
location / {
  try_files $uri $uri/ =404;
  rewrite (\d+|\w+)$ /index.php?id=$1;

  location ^~ /asset/ {
    root /var/www/xx.com;
  }

  location ^~ /api/ {
    root /var/www/xx.com;
  }

  location ^~ /inc/ {
    return 403;
   }
  }

最后只需要修改config.php的相关配置并把inc目录权限设置为可读写即可。


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/610/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。