| 1 | initial version |
You may be able to use Apache's mod_proxy and VirtualHosts to solve your problem. I suggest looking at ProxyPass, ProxyPassReverse, ProxyPreserveHost, and maybe also mod_rewrite's rewriting directives.
| 2 | No.2 Revision |
You may be able to use Apache's mod_proxy and VirtualHosts to solve your problem. I suggest looking at ProxyPass, ProxyPassReverse, ProxyPreserveHost, and maybe also mod_rewrite's rewriting directives.
| 3 | Add small example. |
You may be able to use Apache's mod_proxy and VirtualHosts to solve your problem. I suggest looking at ProxyPass, ProxyPassReverse, ProxyPreserveHost, and maybe also mod_rewrite's rewriting directives.
A small example: I appended
<VirtualHost *>
ProxyPreserveHost On
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
<Location /hg/>
</Location>
</VirtualHost>
to /etc/httpd/conf/httpd.conf on my Fedora 12 machine. Then, I (re)started Apache with service http restart and separately ran hg serve in a local Mercurial repository.
With this setup, I could access the repository at http://localhost/hg/. You could also try this with a notebook server. In this case, the ProxyPreserveHost directive is important --- it will fix the problem described at #8205.
However, I don't how well this works with secure servers and URLs. Please let us know!
| 4 | No.4 Revision |
You may be able to use Apache's mod_proxy and VirtualHosts to solve your problem. I suggest looking at ProxyPass, ProxyPassReverse, ProxyPreserveHost, and maybe also mod_rewrite's rewriting directives.
A small example: I appended
<VirtualHost *>
ProxyPreserveHost On
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
<Location /hg/>
</Location>
</VirtualHost>
to /etc/httpd/conf/httpd.conf on my Fedora 12 machine. Then, I (re)started Apache with service http restart and separately ran hg serve in a local Mercurial repository.
With this setup, I could access the repository at http://localhost/hg/. You could also try this with a notebook server. server started with interface='localhost'. In this case, the ProxyPreserveHost directive is important --- it will fix the problem described at #8205.
However, I don't how well this works with secure servers and URLs. Please let us know!
| 5 | No.5 Revision |
You may be able to use Apache's mod_proxy and VirtualHosts to solve your problem. I suggest looking at ProxyPass, ProxyPassReverse, ProxyPreserveHost, and maybe also mod_rewrite's rewriting directives.
A small example: I appended
<VirtualHost *>
ProxyPreserveHost On
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
<Location /hg/>
</Location>
</VirtualHost>
to /etc/httpd/conf/httpd.conf on my Fedora 12 machine. Then, I (re)started Apache with service http restart and separately ran hg serve in a local Mercurial repository.
repository. With this setup, I could access the repository at http://localhost/hg/. .
You could also try this with a notebook server started with interface='localhost'. In this case, the ProxyPreserveHost directive is important --- it will fix the problem described at #8205.
However, I don't how well this works with secure servers and URLs. You may need to tweak the configuration further. Please let us know!
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.