Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Having trouble getting rewrites to work. #531

Closed Answered by joseluisq
Hellgin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, here I address some of your main concerns.

I need POST service calls matching the path of /service/* to be directed to endpoints hosted by another service on port 80 (the website is hosting on port 8888).

SWS only supports GET, HEAD, and OPTIONS request methods. That's why you will get 405 Method Not Allowed. See https://static-web-server.net/features/http-methods/

so the rewrites seem to work as long as it rewrites to a URL within the static-web-server, but as soon as change the destination to something external it doesnt work.

URL Rewrites supports a redirect option to tell SWS to perform a redirection request when the source matches. You could use that option.
However, take int…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Hellgin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v2 v2 release
2 participants