I have a node application running on localhost:3000
However when others access this server within the local network, I'd like have this server respond with the namespace serverhost:80/wiki
.
I have the following configuration right now in /etc/httpd/conf.d/wiki.conf
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName wiki
ProxyPass /wiki http://localhost:3000/
ProxyPassReverse /wiki http://localhost:3000/
</VirtualHost>
This will only work for the homepage, all links like /home/about
inside the wiki pages are broken because it does not know localhost:80/wiki/~
(or namespace that start with wiki
).
How can I properly apply/map? /wiki
to every link?
非常感谢。