Is this much slower than direct Access?
RewriteEngine On
RewriteRule (.*) http://localhost:23232/$1 [P]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It wouldn’t be much slower. It would only differ by the tiny fraction it takes for Apache to proxy your request which compared to the time it takes for Node.js to process your request is most likely even hard to measure.
However, you’d probably want to use
ProxyPassandProxyPassReverseinstead of a rewrite so that Apache acts as a real proxy instead.