Ao usar o AWS re:Post, você concorda com os AWS re:Post Termos de uso

How to use WAF positional constraint STARTS_WITH in a URI web request

0

I created a rule Type --> Regular, Field to match --> URI path, Positional constraint --> STARTS_WITH, Search string --> "/test" Action --> allow

I'm trying to test the functionality of the rule as : "curl http://test/apache-server-testing-loadbalancer-123456789.af-south-1.elb.amazonaws.com" but it's saying "Could not resolve host: test". please how can i have "/test" at the start of the URL for the functionality test.

below is the actual URI of the resource ----"curl http://apache-server-testing-loadbalancer-123456789.af-south-1.elb.amazonaws.com"

feita há 2 anos754 visualizações
1 Resposta
0

If you created a rule as you mentioned, you should try like below.

"curl http://apache-server-testing-loadbalancer-123456789.af-south-1.elb.amazonaws.com/test"

apache-server-testing-loadbalancer-123456789.af-south-1.elb.amazonaws.com is host field and "/test" is part of URI.

Thanks

profile pictureAWS
respondido há 2 anos
  • Hi @ Eunsu_Shin, I thought having "/test" at the end represent "positional_constraint - ENDS_WITH. Isn't there a difference between STARTS_WITH and ENDS_WITH? Thanks

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas