Update README.md

This commit is contained in:
2018-05-18 21:30:38 +09:00
committed by GitHub
parent 457eadf1b5
commit 2b74862c18
+21
View File
@@ -1,2 +1,23 @@
# php-shortlink
Make shortlink for PHP
Example nginx configuration
```
server {
listen 443 ssl http2;
server_name hakase.pw; # Fix domain
root [directory];
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
rewrite ^/(.+)$ /index.php?$1 last;
error_page 404 = /index.php?$uri;
include fastcgi.conf; # PHP Configuration
}
```