Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.

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!

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!

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!