mirror of
https://github.com/pikami/palm-paste.git
synced 2024-11-27 14:15:43 +00:00
Fixed nginx rewrite rule
This commit is contained in:
parent
d5ad274f01
commit
c2340ca3fa
@ -1,6 +1,6 @@
|
|||||||
# replace all occurrences of "paste" with the root of your palm-paste installation
|
# replace all occurrences of "paste" with the root of your palm-paste installation
|
||||||
location /paste {
|
location /paste {
|
||||||
if ( $uri !~ ^/paste/(index\.php|css|js|robots\.txt|favicon\.ico|) ) {
|
if ( $uri !~ ^/paste/(index\.php|css|js|robots\.txt|favicon\.ico|$) ) {
|
||||||
rewrite ^/paste/u/(.*)$ /paste/index.php?user=$1? last;
|
rewrite ^/paste/u/(.*)$ /paste/index.php?user=$1? last;
|
||||||
rewrite ^/paste/(.*)$ /paste/index.php?page=$1? last;
|
rewrite ^/paste/(.*)$ /paste/index.php?page=$1? last;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user