Hello, I am trying to serve a Node.JS Application via Nginx-Unit on an specific endpoint of my domain.
But for my usecase i have to use the new "URI Rewrite" Feature of NGINX-Unit which is already released with Nginx-Unit 1.30.0 which I updated in DirectAdmin (CustomBuild).
But when i try to edit the Routes of my application with the URI Rewrite-Option as in a example of "unit.nginx.com" an error occurs uppon saving.
This is my routes configuration for that application:
I tried it also with the "pass" Property instead of the "proxy" Property but the same errors occurs everytime.
The error is following (The error banner in the bottom right corner appears):
"Deine Anfrage kann nicht ausgeführt werden
Unbehandelter Wert "action" der Route rewrite"
in English:
"Your request cannot be processed
Unhandled "action" value of route rewrite"
Is there a need for a DirectAdmin Update to handle this new feature or I am doing it wrong?
Thanks and best regards Jonathan
But for my usecase i have to use the new "URI Rewrite" Feature of NGINX-Unit which is already released with Nginx-Unit 1.30.0 which I updated in DirectAdmin (CustomBuild).
But when i try to edit the Routes of my application with the URI Rewrite-Option as in a example of "unit.nginx.com" an error occurs uppon saving.
This is my routes configuration for that application:
JSON:
[
{
"match": {
"uri": [
"/strapi/*"
]
},
"action": {
"rewrite": "/$uri",
"proxy": "http://172.17.0.10:1337"
}
},
{
"match": {
"uri": "/*"
},
"action": {
"share": "/home/ares/domains/linguakademie.jstrauss.at/public_html/$uri"
}
}
]
I tried it also with the "pass" Property instead of the "proxy" Property but the same errors occurs everytime.
The error is following (The error banner in the bottom right corner appears):
"Deine Anfrage kann nicht ausgeführt werden
Unbehandelter Wert "action" der Route rewrite"
in English:
"Your request cannot be processed
Unhandled "action" value of route rewrite"
Is there a need for a DirectAdmin Update to handle this new feature or I am doing it wrong?
Thanks and best regards Jonathan