Thanks for the quick reply !
However this doesn’t seem to work.
Here is the complete stdout log:
{"level":"debug","ts":1603043422.3141768,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"method":"GET","uri":"/env_01/api/dashboard/","proto":"HTTP/2.0","remote_addr":"0.0.0.0:49632","host":"11.1.1.1:4433","headers":{"User-Agent":["insomnia/2020.4.1"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"ciphersuite":4865,"proto":"h2","proto_mutual":true,"server_name":""}},"method":"GET","uri":"/dashboard/"}
{"level":"debug","ts":1603043422.3141768,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"method":"GET","uri":"/dashboard/","proto":"HTTP/2.0","remote_addr":"0.0.0.0:49632","host":"11.1.1.1:4433","headers":{"User-Agent":["insomnia/2020.4.1"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"ciphersuite":4865,"proto":"h2","proto_mutual":true,"server_name":""}},"method":"GET","uri":"index.php"}
{"level":"debug","ts":1603043422.3141768,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"method":"GET","uri":"index.php","proto":"HTTP/2.0","remote_addr":"0.0.0.0:49632","host":"11.1.1.1:4433","headers":{"User-Agent":["insomnia/2020.4.1"],"Accept":["*/*"],"X-Forwarded-For":["0.0.0.0"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"ciphersuite":4865,"proto":"h2","proto_mutual":true,"server_name":""}},"dial":"127.0.0.1:9008","env":{"AUTH_TYPE":"","CONTENT_LENGTH":"","CONTENT_TYPE":"","DOCUMENT_ROOT":"C:\\demo\\env_01\\api\\public","DOCUMENT_URI":"index.php","GATEWAY_INTERFACE":"CGI/1.1","HTTPS":"on","HTTP_ACCEPT":"*/*","HTTP_HOST":"11.1.1.1:4433","HTTP_USER_AGENT":"insomnia/2020.4.1","HTTP_X_FORWARDED_FOR":"0.0.0.0","HTTP_X_FORWARDED_PROTO":"https","PATH_INFO":"","QUERY_STRING":"","REMOTE_ADDR":"0.0.0.0","REMOTE_HOST":"0.0.0.0","REMOTE_IDENT":"","REMOTE_PORT":"49632","REMOTE_USER":"","REQUEST_METHOD":"GET","REQUEST_SCHEME":"https","REQUEST_URI":"/env_01/api/dashboard/","SCRIPT_FILENAME":"C:\\demo\\env_01\\api\\public\\index.php","SCRIPT_NAME":"index.php","SERVER_NAME":"11.1.1.1","SERVER_PORT":"4433","SERVER_PROTOCOL":"HTTP/2.0","SERVER_SOFTWARE":"Caddy/v2.1.1","SSL_CIPHER":"TLS_AES_128_GCM_SHA256","SSL_PROTOCOL":"TLSv1.3"}}
{"level":"debug","ts":1603043422.8061702,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"127.0.0.1:9008","request":{"method":"GET","uri":"index.php","proto":"HTTP/2.0","remote_addr":"0.0.0.0:49632","host":"11.1.1.1:4433","headers":{"Accept":["*/*"],"X-Forwarded-For":["0.0.0.0"],"X-Forwarded-Proto":["https"],"User-Agent":["insomnia/2020.4.1"]},"tls":{"resumed":false,"version":772,"ciphersuite":4865,"proto":"h2","proto_mutual":true,"server_name":""}},"duration":0.4919961,"headers":{"X-Debug-Token-Link":["https://11.1.1.1:4433/_profiler/7899b0"],"X-Robots-Tag":["noindex"],"Status":["404 Not Found"],"Content-Type":["text/html; charset=UTF-8"],"Cache-Control":["no-cache, private"],"X-Debug-Token":["7899b0"],"X-Previous-Debug-Token":["2f1e83"],"X-Powered-By":["PHP/8.0.0rc1"],"X-Debug-Exception":["No%20route%20found%20for%20%22GET%20%2Fenv_01%2Fapi%2Fdashboard%2F%22"],"X-Debug-Exception-File":["C%3A%5Cdemo%5Cenv_01%5Capi%5Cvendor%5Csymfony%5Chttp-kernel%5CEventListener%5CRouterListener.php:136"],"Date":["Sun, 18 Oct 2020 17:50:22 GMT"]},"status":404}
The uri directive seems to work correctly as in the first two lines the uri is striped down to /dashboard.
However line 3 is more interesting as PHP receives “REQUEST_URI”:"/env_01/api/dashboard/".
Thanks for the help. Cheers !