Error 405 when trying create a shortlink #110
-
Installed through docker:
All config are the default settings, so no database engine used than the default. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 5 replies
-
405 usually means that you are reaching a valid URL, but with the wrong HTTP method. Considering it's an nginx error, it looks like you didn't configure the vhost correctly, as the request is failing before reaching Shlink. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this! In my case, it was the docker host's nginx configuration that was forwarding traffic for all paths to 8081, which was the web client. Adding a rule to redirect anything sent to /rest/ to :8080 (the actual shlink app) fixed it. |
Beta Was this translation helpful? Give feedback.
405 usually means that you are reaching a valid URL, but with the wrong HTTP method.
Considering it's an nginx error, it looks like you didn't configure the vhost correctly, as the request is failing before reaching Shlink.