mirror of
https://github.com/hakasenyang/php-shortlink
synced 2026-08-22 07:03:08 +09:00
Update README.md
This commit is contained in:
@@ -1,2 +1,23 @@
|
|||||||
# php-shortlink
|
# php-shortlink
|
||||||
Make shortlink for PHP
|
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
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user