prepare for api rewrite
This commit is contained in:
parent
e7b9a822da
commit
92765b79fe
|
@ -19,6 +19,13 @@ server {
|
|||
}
|
||||
}
|
||||
|
||||
location /api {
|
||||
index api.php;
|
||||
if (!-e $request_filename){
|
||||
rewrite ^(.*)$ /api.php?url=$1 last;
|
||||
}
|
||||
}
|
||||
|
||||
# logging
|
||||
access_log /var/log/nginx/opentrashmail/web.access.log;
|
||||
error_log /var/log/nginx/opentrashmail/web.error.log warn;
|
||||
|
|
Loading…
Reference in a new issue