That would not be much slower. It will differ only in the tiny fraction that Apache needs to proxy your request, which, compared to the time spent on Node.js, processing your request is most likely even difficult to measure.
However, you probably want to use ProxyPass, ProxyPassReverseinstead of rewriting, Apache acting as a real proxy instead.
source
share