mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-02-08 18:56:18 +01:00
docs: Fix the nginx rewrite
With the previous nginx configuration, all requests that matched `$badagent` were rewrote to `/ai`, without the original URL anywhere. This resulted in `iocaine` only seeing `/ai`, and thus, every page ended up being rendered the same. The rewrite should take the original request URI into account, which is what this patch does. Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
parent
f486b99984
commit
ea9972dbfc
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ Within the `server` block, we'll rewrite the URL if find a match on `$badagent`,
|
|||
server {
|
||||
server_name blog.example.com;
|
||||
if ($badagent) {
|
||||
rewrite ^ /ai;
|
||||
rewrite ^ /ai$request_uri;
|
||||
}
|
||||
location /ai {
|
||||
proxy_set_header Host $host;
|
||||
|
|
Loading…
Reference in a new issue