I don't think this is a better way, this way is only for the cases Apache or nginx is not available to use, I've used this approach for quick and dirty development + staging environment when I've recently created one of my test projects.
I recommend to put express server behind another layer such as nginx in production as @rahmatalimalik5 mentioned.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
or is there any advantage of this over nginx ?
I don't think this is a better way, this way is only for the cases Apache or nginx is not available to use, I've used this approach for quick and dirty development + staging environment when I've recently created one of my test projects.
I recommend to put express server behind another layer such as nginx in production as @rahmatalimalik5 mentioned.